summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-10-28 12:27:10 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-10-31 09:37:57 +0100
commit5ac449a7083cf8fd07b3e64e6216f9bfafbb88bc (patch)
tree3d434aa2fe3b42869ee4d7877faeb547dbda0b1d /src/libs/qmljs/qmljscheck.cpp
parent4537e1b834d16246a443281bbe7c8624bb52f384 (diff)
downloadqt-creator-5ac449a7083cf8fd07b3e64e6216f9bfafbb88bc.tar.gz
QmlJS checks: Change suppression annotation to @disable-check.
Change-Id: I913cd757c4f8339a518c947569c5ba651153f1c1 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index cb679b1c46..3d506220d0 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -1174,7 +1174,7 @@ void Check::scanCommentsForAnnotations()
m_disabledMessageTypesByLine.clear();
// find all disable annotations
- const QRegExp disableCommentPattern(QLatin1String("@disable M(\\d+)"));
+ const QRegExp disableCommentPattern(Message::suppressionPattern());
foreach (const SourceLocation &commentLoc, _doc->engine()->comments()) {
const QString &comment = _doc->source().mid(commentLoc.begin(), commentLoc.length);
int lastOffset = -1;