summaryrefslogtreecommitdiffstats
path: root/lib/cppparser/lexercache.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cppparser/lexercache.h')
-rw-r--r--lib/cppparser/lexercache.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/cppparser/lexercache.h b/lib/cppparser/lexercache.h
index c32d5406..662e0270 100644
--- a/lib/cppparser/lexercache.h
+++ b/lib/cppparser/lexercache.h
@@ -19,8 +19,8 @@
#include <ksharedptr.h>
#include "macro.h"
#include <kdebug.h>
-#include <qdatetime.h>
-#include <qfileinfo.h>
+#include <tqdatetime.h>
+#include <tqfileinfo.h>
#include <ext/hash_set>
#include "cachemanager.h"
@@ -43,17 +43,17 @@ class CachedLexedFile : public KShared, public CacheNode {
void addUsedMacro( const Macro& macro );
- void addIncludeFile( const HashedString& file, const QDateTime& modificationTime );
+ void addIncludeFile( const HashedString& file, const TQDateTime& modificationTime );
inline bool hasString( const HashedString& string ) const {
return m_strings[string];
}
- QDateTime modificationTime() const;
+ TQDateTime modificationTime() const;
void addProblem( const Problem& p );
- QValueList<Problem> problems() const;
+ TQValueList<Problem> problems() const;
//The parameter should be a CachedLexedFile that was lexed AFTER the content of this file
void merge( const CachedLexedFile& file );
@@ -81,21 +81,21 @@ class CachedLexedFile : public KShared, public CacheNode {
}
///Should contain a modification-time for each include-file
- const QMap<HashedString, QDateTime>& allModificationTimes() const {
+ const TQMap<HashedString, TQDateTime>& allModificationTimes() const {
return m_allModificationTimes;
}
private:
friend class LexerCache;
HashedString m_fileName;
- QDateTime m_modificationTime;
+ TQDateTime m_modificationTime;
HashedStringSet m_strings; //Set of all strings that can be affected by macros from outside
HashedStringSet m_includeFiles; //Set of all files
MacroSet m_usedMacros; //Set of all macros that were used, and were defined outside of this file
MacroSet m_definedMacros; //Set of all macros that were defined while lexing this file
HashedStringSet m_definedMacroNames;
- QValueList<Problem> m_problems;
- QMap<HashedString, QDateTime> m_allModificationTimes;
+ TQValueList<Problem> m_problems;
+ TQMap<HashedString, TQDateTime> m_allModificationTimes;
/*
Needed data:
1. Set of all strings that appear in this file(For memory-reasons they should be taken from a global string-repository, because many will be the same)
@@ -140,22 +140,22 @@ class LexerCache : public CacheManager {
virtual void saveMemory();
private:
///before this can be called, initFileModificationCache should be called once
- QDateTime fileModificationTimeCached( const HashedString& fileName );
+ TQDateTime fileModificationTimeCached( const HashedString& fileName );
void initFileModificationCache();
virtual void erase( const CacheNode* node );
bool sourceChanged( const CachedLexedFile& file );///Returns true if the file itself, or any of its dependencies was modified.
//typedef __gnu_cxx::hash_multimap<HashedString, CachedLexedFilePointer> CachedLexedFileMap;
typedef std::multimap<HashedString, CachedLexedFilePointer> CachedLexedFileMap;
CachedLexedFileMap m_files;
- __gnu_cxx::hash_set<HashedString> m_totalStringSet; ///This is used to reduce memory-usage: Most strings appear again and again. Because QString is reference-counted, this set contains a unique copy of each string to used for each appearance of the string
+ __gnu_cxx::hash_set<HashedString> m_totalStringSet; ///This is used to reduce memory-usage: Most strings appear again and again. Because TQString is reference-counted, this set contains a unique copy of each string to used for each appearance of the string
struct FileModificationCache {
- QDateTime m_readTime;
- QDateTime m_modificationTime;
+ TQDateTime m_readTime;
+ TQDateTime m_modificationTime;
};
typedef __gnu_cxx::hash_map<HashedString, FileModificationCache> FileModificationMap;
FileModificationMap m_fileModificationCache;
Driver* m_driver;
- QDateTime m_currentDateTime;
+ TQDateTime m_currentDateTime;
};