]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Simplify DocIterator
[lyx.git] / src / Lexer.cpp
index 2711db49e153e321733fd7c799b011b326791580..17cc161d19ccab690f571c75b288fa9be9e5de45 100644 (file)
@@ -24,8 +24,8 @@
 #include "support/lassert.h"
 #include "support/lstrings.h"
 #include "support/lyxalgo.h"
-#include "support/types.h"
 
+#include <algorithm> // sort, lower_bound
 #include <functional>
 #include <fstream>
 #include <istream>
@@ -945,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;
 }