[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/abakus/src
From: Michael Pyne <michael.pyne () kdemail ! net>
Date: 2006-05-09 6:23:49
Message-ID: 1147155829.262420.16250.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 538844 by mpyne:
Remove STL method which, surprise surprise, doesn't compile on someone's system
somewhere.
M +6 -8 editor.cpp
--- trunk/playground/utils/abakus/src/editor.cpp #538843:538844
@@ -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 @@
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic