summaryrefslogtreecommitdiffstats
path: root/src/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor.cpp')
-rw-r--r--src/editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editor.cpp b/src/editor.cpp
index f4a4276..470198b 100644
--- a/src/editor.cpp
+++ b/src/editor.cpp
@@ -184,7 +184,12 @@ int EditorHighlighter::highlightParagraph ( const TQString & text, int )
case Token::Identifier:
{
color = editor->highlightColor( Editor::Variable );
+#ifndef QT_NO_STL
if( binary_search( fnames.constBegin(), fnames.constEnd(), text) ) {
+#else // QT_NO_STL
+ #warning "Not using STL libraries; performance may be degraded..."
+ if( fnames.find( text) != fnames.end()) {
+#endif // QT_NO_STL
color = editor->highlightColor( Editor::FunctionName );
}
}