]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Simplify DocIterator
[lyx.git] / src / Lexer.cpp
index b11bf4743a549c4044fcd94c288dd25ef178bbc4..17cc161d19ccab690f571c75b288fa9be9e5de45 100644 (file)
@@ -25,6 +25,7 @@
 #include "support/lstrings.h"
 #include "support/lyxalgo.h"
 
+#include <algorithm> // sort, lower_bound
 #include <functional>
 #include <fstream>
 #include <istream>
@@ -944,9 +945,9 @@ bool Lexer::checkFor(char const * required)
 }
 
 
-void Lexer::setContext(std::string const & str)
+void Lexer::setContext(std::string const & functionName)
 {
-       pimpl_->context = str;
+       pimpl_->context = functionName;
 }