*
* \author Angus Leeming
* \author Georg Baum
- * \author Richard Heck
+ * \author Richard Kimberly Heck
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#include <algorithm>
-#include <functional>
-
#include "InsetCommandParams.h"
#include "Buffer.h"
#include "Encoding.h"
#include "Lexer.h"
-#include "OutputParams.h"
#include "frontends/alert.h"
#include "support/lassert.h"
+#include <algorithm>
+#include <functional>
+
using namespace std;
using namespace lyx::support;
// we can only output characters covered by the current
// encoding!
docstring uncodable;
- for (size_type i = 0 ; i < command.size() ; ++i) {
- char_type c = command[i];
+ for (char_type c : command) {
try {
if (runparams.encoding->encodable(c))
result += c;
{
ParamInfo::const_iterator it =
find_if(info_.begin(), info_.end(),
- not1(mem_fun_ref(&ParamInfo::ParamData::isOptional)));
+ [](ParamInfo::ParamData const & d) { return !d.isOptional(); });
LASSERT(it != info_.end(), return docstring());
return (*this)[it->name()];
}