OSDN Git Service

remove QHashDummyNode and QHashDummyValue leftovers
authorIvailo Monev <xakepa10@laimg.moc>
Thu, 19 Dec 2019 12:30:46 +0000 (12:30 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Thu, 19 Dec 2019 12:30:46 +0000 (12:30 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
scripts/namefsck.py
src/core/CMakeLists.txt
src/tools/moc/symbols.h

index b5df5b1..048bd14 100755 (executable)
@@ -299,8 +299,6 @@ classlist = [
     "QGuiPlatformPlugin",
     "QHash",
     "QHashData",
-    "QHashDummyNode",
-    "QHashDummyValue",
     "QHashNode",
     "QHBoxLayout",
     "QHeaderView",
index 5a8c522..44ed9b6 100644 (file)
@@ -66,8 +66,6 @@ set(CORE_PUBLIC_HEADERS
     QIODevice
     QtConfig
     QPair
-    QHashDummyNode
-    QHashDummyValue
     QFutureWatcherBase
     QPoint
     QByteArray
index 6e5f06e..ac758e3 100644 (file)
@@ -71,7 +71,7 @@ inline uint qHash(const SubArray &key)
 struct Symbol
 {
 #ifdef USE_LEXEM_STORE
-    typedef QHash<SubArray, QHashDummyValue> LexemStore;
+    typedef QSet<SubArray> LexemStore;
     static LexemStore lexemStore;
 
     inline Symbol() : lineNum(-1),token(NOTOKEN){}
@@ -87,7 +87,7 @@ struct Symbol
             lex = it.key().array;
         } else {
             lex = lexem.mid(from, len);
-            lexemStore.insert(lex, QHashDummyValue());
+            lexemStore.insert(lex);
         }
     }
     int lineNum;