summaryrefslogtreecommitdiffstats
path: root/kdecore/ksycocafactory.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:57:02 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-02 19:04:59 +0200
commit41b1d53a0144afe4c31425c18af25c2d6ade881b (patch)
tree4bf4a434c5db64325f317e56cc9d8d2a729df3e4 /kdecore/ksycocafactory.cpp
parente2867c1f1eec514d56386f2fc5350eaaf760532a (diff)
downloadtdelibs-41b1d53a0144afe4c31425c18af25c2d6ade881b.tar.gz
tdelibs-41b1d53a0144afe4c31425c18af25c2d6ade881b.zip
Remove additional unneeded tq method conversions
(cherry picked from commit a51cd9949c4e6c726a84a61de3cfadd30cefb5c7)
Diffstat (limited to 'kdecore/ksycocafactory.cpp')
-rw-r--r--kdecore/ksycocafactory.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdecore/ksycocafactory.cpp b/kdecore/ksycocafactory.cpp
index da65619e6..c224ebe79 100644
--- a/kdecore/ksycocafactory.cpp
+++ b/kdecore/ksycocafactory.cpp
@@ -46,10 +46,10 @@ KSycocaFactory::KSycocaFactory(KSycocaFactoryId factory_id)
(*m_str) >> i;
m_endEntryOffset = i;
- int saveOffset = m_str->tqdevice()->tqat();
+ int saveOffset = m_str->device()->at();
// Init index tables
m_sycocaDict = new KSycocaDict(m_str, m_sycocaDictOffset);
- saveOffset = m_str->tqdevice()->tqat(saveOffset);
+ saveOffset = m_str->device()->at(saveOffset);
}
}
else
@@ -78,7 +78,7 @@ void
KSycocaFactory::saveHeader(TQDataStream &str)
{
// Write header
- str.tqdevice()->tqat(mOffset);
+ str.device()->at(mOffset);
str << (TQ_INT32) m_sycocaDictOffset;
str << (TQ_INT32) m_beginEntryOffset;
str << (TQ_INT32) m_endEntryOffset;
@@ -91,13 +91,13 @@ KSycocaFactory::save(TQDataStream &str)
// building database
if (!m_sycocaDict) return; // Error!
- mOffset = str.tqdevice()->tqat(); // store position in member variable
+ mOffset = str.device()->at(); // store position in member variable
m_sycocaDictOffset = 0;
// Write header (pass #1)
saveHeader(str);
- m_beginEntryOffset = str.tqdevice()->tqat();
+ m_beginEntryOffset = str.device()->at();
// Write all entries.
int entryCount = 0;
@@ -110,7 +110,7 @@ KSycocaFactory::save(TQDataStream &str)
entryCount++;
}
- m_endEntryOffset = str.tqdevice()->tqat();
+ m_endEntryOffset = str.device()->at();
// Write indices...
// Linear index
@@ -124,16 +124,16 @@ KSycocaFactory::save(TQDataStream &str)
}
// Dictionary index
- m_sycocaDictOffset = str.tqdevice()->tqat();
+ m_sycocaDictOffset = str.device()->at();
m_sycocaDict->save(str);
- int endOfFactoryData = str.tqdevice()->tqat();
+ int endOfFactoryData = str.device()->at();
// Update header (pass #2)
saveHeader(str);
// Seek to end.
- str.tqdevice()->tqat(endOfFactoryData);
+ str.device()->at(endOfFactoryData);
}
void
@@ -169,7 +169,7 @@ KSycocaEntry::List KSycocaFactory::allEntries()
// Assume we're NOT building a database
- m_str->tqdevice()->tqat(m_endEntryOffset);
+ m_str->device()->at(m_endEntryOffset);
TQ_INT32 entryCount;
(*m_str) >> entryCount;