diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
commit | 808e453c56036211f57482ed847d54aca01bba68 (patch) | |
tree | 75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /dcoprss/cache.cpp | |
parent | cd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff) | |
download | tdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'dcoprss/cache.cpp')
-rw-r--r-- | dcoprss/cache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dcoprss/cache.cpp b/dcoprss/cache.cpp index 0636c674..c4a566aa 100644 --- a/dcoprss/cache.cpp +++ b/dcoprss/cache.cpp @@ -35,7 +35,7 @@ bool CacheEntry::isValid() const { // Cache entries get invalid after on hour. One shouldn't hardcode this // but for now it'll do. - return m_timeStamp.secsTo( TQDateTime::tqcurrentDateTime() ) < 3600; + return m_timeStamp.secsTo( TQDateTime::currentDateTime() ) < 3600; } Cache *Cache::m_instance = 0; @@ -51,8 +51,8 @@ TQString Cache::getCacheKey( const TQString &server, const TQString &method, const TQValueList<TQVariant> &args ) { TQString key; - key = server + TQString::tqfromLatin1( "__" ); - key += method + TQString::tqfromLatin1( "__" ); + key = server + TQString::fromLatin1( "__" ); + key += method + TQString::fromLatin1( "__" ); TQValueList<TQVariant>::ConstIterator it = args.begin(); TQValueList<TQVariant>::ConstIterator end = args.end(); for ( ; it != end; ++it ) @@ -111,13 +111,13 @@ void Cache::touch( const TQString &key ) CacheEntry *entry = find( key ); if ( !entry ) return; - entry->m_timeStamp = TQDateTime::tqcurrentDateTime(); + entry->m_timeStamp = TQDateTime::currentDateTime(); } void Cache::insert( const TQString &key, const KXMLRPC::Query::Result &result ) { CacheEntry *entry = new CacheEntry; - entry->m_timeStamp = TQDateTime::tqcurrentDateTime(); + entry->m_timeStamp = TQDateTime::currentDateTime(); entry->m_result = result; TQDict<CacheEntry>::insert( key, entry ); } |