summaryrefslogtreecommitdiffstats
path: root/lib/cppparser/lexercache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cppparser/lexercache.cpp')
-rw-r--r--lib/cppparser/lexercache.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/cppparser/lexercache.cpp b/lib/cppparser/lexercache.cpp
index a7e40dd6..230a7de1 100644
--- a/lib/cppparser/lexercache.cpp
+++ b/lib/cppparser/lexercache.cpp
@@ -108,7 +108,7 @@ CachedLexedFilePointer LexerCache::lexedFile( const HashedString& fileName ) {
return CachedLexedFilePointer();
}
-QDateTime LexerCache::fileModificationTimeCached( const HashedString& fileName ) {
+TQDateTime LexerCache::fileModificationTimeCached( const HashedString& fileName ) {
FileModificationMap::const_iterator it = m_fileModificationCache.find( fileName );
if( it != m_fileModificationCache.end() ) {
///Use the cache for 10 seconds
@@ -117,8 +117,8 @@ QDateTime LexerCache::fileModificationTimeCached( const HashedString& fileName )
}
}
- QFileInfo fileInfo( fileName.str() );
- m_fileModificationCache[fileName].m_readTime = QDateTime::currentDateTime();
+ TQFileInfo fileInfo( fileName.str() );
+ m_fileModificationCache[fileName].m_readTime = TQDateTime::currentDateTime();
m_fileModificationCache[fileName].m_modificationTime = fileInfo.lastModified();
return fileInfo.lastModified();
@@ -128,13 +128,13 @@ QDateTime LexerCache::fileModificationTimeCached( const HashedString& fileName )
bool LexerCache::sourceChanged( const CachedLexedFile& file ) {
//@todo Check if any of the dependencies changed
- QDateTime modTime = fileModificationTimeCached( file.fileName() );
+ TQDateTime modTime = fileModificationTimeCached( file.fileName() );
if ( modTime != file.modificationTime() )
return true;
- for( QMap<HashedString, QDateTime>::const_iterator it = file.allModificationTimes().begin(); it != file.allModificationTimes().end(); ++it ) {
- QDateTime modTime = fileModificationTimeCached( it.key() );
+ for( TQMap<HashedString, TQDateTime>::const_iterator it = file.allModificationTimes().begin(); it != file.allModificationTimes().end(); ++it ) {
+ TQDateTime modTime = fileModificationTimeCached( it.key() );
if( modTime != *it )
return true;
}
@@ -162,7 +162,7 @@ void LexerCache::erase( const CacheNode* node ) {
}
CachedLexedFile::CachedLexedFile( const HashedString& fileName, LexerCache* manager ) : CacheNode( manager ), m_fileName( fileName ) {
- QFileInfo fileInfo( fileName.str() );
+ TQFileInfo fileInfo( fileName.str() );
m_modificationTime = fileInfo.lastModified();
m_allModificationTimes[ fileName ] = m_modificationTime;
}
@@ -184,13 +184,13 @@ void CachedLexedFile::addUsedMacro( const Macro& macro ) {
}
}
-void CachedLexedFile::addIncludeFile( const HashedString& file, const QDateTime& modificationTime ) {
+void CachedLexedFile::addIncludeFile( const HashedString& file, const TQDateTime& modificationTime ) {
m_includeFiles.insert( file );
m_allModificationTimes[file] = modificationTime;
}
-QDateTime CachedLexedFile::modificationTime() const {
+TQDateTime CachedLexedFile::modificationTime() const {
return m_modificationTime;
}
@@ -198,7 +198,7 @@ void CachedLexedFile::addProblem( const Problem& p ) {
m_problems << p;
}
-QValueList<Problem> CachedLexedFile::problems() const {
+TQValueList<Problem> CachedLexedFile::problems() const {
return m_problems;
}
@@ -224,7 +224,7 @@ void CachedLexedFile::merge( const CachedLexedFile& file ) {
m_definedMacros.merge( file.m_definedMacros );
m_definedMacroNames += file.m_definedMacroNames;
- for( QMap<HashedString, QDateTime>::const_iterator it = file.m_allModificationTimes.begin(); it != file.m_allModificationTimes.end(); ++it )
+ for( TQMap<HashedString, TQDateTime>::const_iterator it = file.m_allModificationTimes.begin(); it != file.m_allModificationTimes.end(); ++it )
m_allModificationTimes[it.key()] = *it;
@@ -239,7 +239,7 @@ size_t CachedLexedFile::hash() const {
}
void LexerCache::initFileModificationCache() {
- m_currentDateTime = QDateTime::currentDateTime();
+ m_currentDateTime = TQDateTime::currentDateTime();
}
void LexerCache::saveMemory() {