summaryrefslogtreecommitdiffstats
path: root/kded/kbuildsycoca.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:48:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:48:49 -0600
commit13281e2856a2ef43bbab78c5528470309c23aa77 (patch)
tree936bcf8145dc235004c73e9fb3d6b3dca9aa370b /kded/kbuildsycoca.cpp
parente81c741bb2cf337a43524e75f22f7728ce17a343 (diff)
downloadtdelibs-13281e2856a2ef43bbab78c5528470309c23aa77.tar.gz
tdelibs-13281e2856a2ef43bbab78c5528470309c23aa77.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kded/kbuildsycoca.cpp')
-rw-r--r--kded/kbuildsycoca.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kded/kbuildsycoca.cpp b/kded/kbuildsycoca.cpp
index da5059a92..19f7a3671 100644
--- a/kded/kbuildsycoca.cpp
+++ b/kded/kbuildsycoca.cpp
@@ -160,12 +160,12 @@ void KBuildSycoca::processGnomeVfs()
if (line[0] != '\t')
{
- app = TQString::tqfromLatin1(line);
+ app = TQString::fromLatin1(line);
app.truncate(app.length()-1);
}
else if (strncmp(line+1, "mime_types=", 11) == 0)
{
- TQString mimetypes = TQString::tqfromLatin1(line+12);
+ TQString mimetypes = TQString::fromLatin1(line+12);
mimetypes.truncate(mimetypes.length()-1);
mimetypes.replace(TQRegExp("\\*"), "all");
KService *s = g_bsf->findServiceByName(app);
@@ -500,7 +500,7 @@ bool KBuildSycoca::recreate()
if( build()) // Parse dirs
{
save(); // Save database
- if (m_str->tqdevice()->status())
+ if (m_str->device()->status())
database->abort(); // Error
m_str = 0L;
if (!database->close())
@@ -541,7 +541,7 @@ bool KBuildSycoca::recreate()
void KBuildSycoca::save()
{
// Write header (#pass 1)
- m_str->tqdevice()->tqat(0);
+ m_str->device()->at(0);
(*m_str) << (TQ_INT32) KSycoca::version();
KSycocaFactory * servicetypeFactory = 0L;
@@ -575,14 +575,14 @@ void KBuildSycoca::save()
factory = m_lstFactories->next())
{
factory->save(*m_str);
- if (m_str->tqdevice()->status())
+ if (m_str->device()->status())
return; // error
}
- int endOfData = m_str->tqdevice()->tqat();
+ int endOfData = m_str->device()->at();
// Write header (#pass 2)
- m_str->tqdevice()->tqat(0);
+ m_str->device()->at(0);
(*m_str) << (TQ_INT32) KSycoca::version();
for(KSycocaFactory *factory = m_lstFactories->first();
@@ -599,7 +599,7 @@ void KBuildSycoca::save()
(*m_str) << (TQ_INT32) 0; // No more factories.
// Jump to end of database
- m_str->tqdevice()->tqat(endOfData);
+ m_str->device()->at(endOfData);
}
bool KBuildSycoca::checkDirTimestamps( const TQString& dirname, const TQDateTime& stamp, bool top )