OSDN Git Service

add dummy member to QRegExpCharClass only if QT_NO_REGEXP_OPTIM is defined
authorIvailo Monev <xakepa10@laimg.moc>
Fri, 13 Dec 2019 20:02:55 +0000 (20:02 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Fri, 13 Dec 2019 20:02:55 +0000 (20:02 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/tools/qregexp.cpp

index 8bb409c..1195f96 100644 (file)
@@ -1047,13 +1047,13 @@ private:
 #else
 struct QRegExpCharClass
 {
-    int dummy;
-
 #ifndef QT_NO_REGEXP_OPTIM
     QRegExpCharClass() { occ1.fill(0, NumBadChars); }
 
     const QVector<int> &firstOccurrence() const { return occ1; }
     QVector<int> occ1;
+#else
+    int dummy;
 #endif
 };
 #endif