Commit 1efe7245 authored by Michael Pyne's avatar Michael Pyne
Browse files

Remove STL method which, surprise surprise, doesn't compile on someone's system

somewhere.

svn path=/trunk/playground/utils/abakus/; revision=538844
parent 8126ae3f
......@@ -45,11 +45,6 @@
#include <kdebug.h>
#include <algorithm>
// XXX: QT 4: Replace this with qBinaryFind().
using std::binary_search;
class CalcResultLabel : public QLabel
{
public:
......@@ -184,9 +179,12 @@ int EditorHighlighter::highlightParagraph ( const QString & text, int )
case Token::Identifier:
{
color = editor->highlightColor( Editor::Variable );
if( binary_search( fnames.constBegin(), fnames.constEnd(), text) ) {
color = editor->highlightColor( Editor::FunctionName );
}
// XXX: QT 4: Replace this with qBinaryFind().
if( fnames.contains( text ) ) {
color = editor->highlightColor( Editor::FunctionName );
}
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment