From: Ritt Konstantin Date: Fri, 15 Jul 2011 00:30:33 +0000 (+0400) Subject: don't build code related to CClass if QT_NO_REGEXP_CCLASS is defined X-Git-Tag: qt-v5.0.0-alpha1~3768 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c400a3433a15adac5ff58898c29900169458d2c1;p=profile%2Fivi%2Fqtbase.git don't build code related to CClass if QT_NO_REGEXP_CCLASS is defined Change-Id: If86835b1065eeb95e0774f1b42870dcd5225da58 Reviewed-on: http://codereview.qt.nokia.com/3671 Reviewed-by: Qt Sanity Bot Reviewed-by: Lars Knoll --- diff --git a/src/corelib/tools/qregexp.cpp b/src/corelib/tools/qregexp.cpp index 325320d..a93767f 100644 --- a/src/corelib/tools/qregexp.cpp +++ b/src/corelib/tools/qregexp.cpp @@ -1252,7 +1252,9 @@ private: friend class Box; +#ifndef QT_NO_REGEXP_CCLASS void setupCategoriesRangeMap(); +#endif /* This is the lexical analyzer for regular expressions. @@ -1293,7 +1295,9 @@ private: int yyTok; // the last token read bool yyMayCapture; // set this to false to disable capturing +#ifndef QT_NO_REGEXP_CCLASS QHash > categoriesRangeMap; // fast lookup hash for xml schema extensions +#endif friend struct QRegExpMatchState; }; @@ -2735,6 +2739,7 @@ void QRegExpEngine::Box::addAnchorsToEngine(const Box &to) const } } +#ifndef QT_NO_REGEXP_CCLASS void QRegExpEngine::setupCategoriesRangeMap() { categoriesRangeMap.insert("IsBasicLatin", qMakePair(0x0000, 0x007F)); @@ -2880,6 +2885,7 @@ void QRegExpEngine::setupCategoriesRangeMap() categoriesRangeMap.insert("IsSupplementaryPrivateUseArea-A", qMakePair(0xF0000, 0xFFFFF)); categoriesRangeMap.insert("IsSupplementaryPrivateUseArea-B", qMakePair(0x100000, 0x10FFFF)); } +#endif int QRegExpEngine::getChar() {