diff options
Diffstat (limited to 'lib/cppparser')
-rw-r--r-- | lib/cppparser/ast.cpp | 2 | ||||
-rw-r--r-- | lib/cppparser/lexer.cpp | 6 | ||||
-rw-r--r-- | lib/cppparser/lexercache.cpp | 6 | ||||
-rw-r--r-- | lib/cppparser/lexercache.h | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/cppparser/ast.cpp b/lib/cppparser/ast.cpp index 334ac62a..847c0201 100644 --- a/lib/cppparser/ast.cpp +++ b/lib/cppparser/ast.cpp @@ -474,7 +474,7 @@ TQString ClassOrNamespaceNameAST::text() const TQString str = m_name->text(); if( m_templateArgumentList.get() ) - str += TQString::tqfromLatin1("< ") + m_templateArgumentList->text() + TQString::tqfromLatin1(" >"); + str += TQString::fromLatin1("< ") + m_templateArgumentList->text() + TQString::fromLatin1(" >"); return str; } diff --git a/lib/cppparser/lexer.cpp b/lib/cppparser/lexer.cpp index 1b98708f..3f325f58 100644 --- a/lib/cppparser/lexer.cpp +++ b/lib/cppparser/lexer.cpp @@ -393,14 +393,14 @@ void Lexer::nextToken( Token& tk, bool stopOnNewline ) } if( stringify ) { - textToInsert.append( TQString::tqfromLatin1("\"") + str.str() + TQString::tqfromLatin1("\" ") ); + textToInsert.append( TQString::fromLatin1("\"") + str.str() + TQString::fromLatin1("\" ") ); } else if( merge ){ textToInsert.truncate( textToInsert.length() - 1 ); - textToInsert.append( str.str() + TQString::tqfromLatin1(" ") ); + textToInsert.append( str.str() + TQString::fromLatin1(" ") ); } else if( tok == Token_ellipsis && d->hasBind("...") ){ textToInsert.append( ellipsisArg ); } else { - textToInsert.append( str.str() + TQString::tqfromLatin1(" ") ); + textToInsert.append( str.str() + TQString::fromLatin1(" ") ); } } diff --git a/lib/cppparser/lexercache.cpp b/lib/cppparser/lexercache.cpp index 2d28e27d..230a7de1 100644 --- a/lib/cppparser/lexercache.cpp +++ b/lib/cppparser/lexercache.cpp @@ -112,13 +112,13 @@ 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 - if( (*it).second.m_readTime.secsTo( m_tqcurrentDateTime ) < 10 ) { + if( (*it).second.m_readTime.secsTo( m_currentDateTime ) < 10 ) { return (*it).second.m_modificationTime; } } TQFileInfo fileInfo( fileName.str() ); - m_fileModificationCache[fileName].m_readTime = TQDateTime::tqcurrentDateTime(); + m_fileModificationCache[fileName].m_readTime = TQDateTime::currentDateTime(); m_fileModificationCache[fileName].m_modificationTime = fileInfo.lastModified(); return fileInfo.lastModified(); @@ -239,7 +239,7 @@ size_t CachedLexedFile::hash() const { } void LexerCache::initFileModificationCache() { - m_tqcurrentDateTime = TQDateTime::tqcurrentDateTime(); + m_currentDateTime = TQDateTime::currentDateTime(); } void LexerCache::saveMemory() { diff --git a/lib/cppparser/lexercache.h b/lib/cppparser/lexercache.h index a68c4a6b..662e0270 100644 --- a/lib/cppparser/lexercache.h +++ b/lib/cppparser/lexercache.h @@ -155,7 +155,7 @@ class LexerCache : public CacheManager { typedef __gnu_cxx::hash_map<HashedString, FileModificationCache> FileModificationMap; FileModificationMap m_fileModificationCache; Driver* m_driver; - TQDateTime m_tqcurrentDateTime; + TQDateTime m_currentDateTime; }; |