summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsscanner.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-05-23 08:47:16 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-05-23 08:49:03 +0200
commita3c9cb995d341d08519a4787f53ff95acca93b29 (patch)
treea212a5de91643ff584dd2ac67a291ed55c378b65 /src/libs/qmljs/qmljsscanner.cpp
parentf027b1da87afe3696ef4fc93bd36c08e1f72daa7 (diff)
downloadqt-creator-a3c9cb995d341d08519a4787f53ff95acca93b29.tar.gz
Compile fix
Change-Id: I8f3eb7d21074fec00de870d33e493842286222ee Reviewed-on: http://codereview.qt.nokia.com/51 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsscanner.cpp')
-rw-r--r--src/libs/qmljs/qmljsscanner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/qmljs/qmljsscanner.cpp b/src/libs/qmljs/qmljsscanner.cpp
index 58604df715..84d8669288 100644
--- a/src/libs/qmljs/qmljsscanner.cpp
+++ b/src/libs/qmljs/qmljsscanner.cpp
@@ -166,22 +166,22 @@ static int findRegExpEnd(const QString &text, int start)
static inline int multiLineState(int state)
{
- return state & 0b11;
+ return state & 0x3;
}
static inline void setMultiLineState(int *state, int s)
{
- *state = s | (*state & ~0b11);
+ *state = s | (*state & ~0x3);
}
static inline bool regexpMayFollow(int state)
{
- return state & 0b100;
+ return state & 0x4;
}
static inline void setRegexpMayFollow(int *state, bool on)
{
- *state = (on << 2) | (*state & 0b11);
+ *state = (on << 2) | (*state & 0x3);
}
QList<Token> Scanner::operator()(const QString &text, int startState)