diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:10:06 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-07-30 19:08:37 +0200 |
commit | 84d364900ac9ba64aa658d2bb23bbddbfd1b8b42 (patch) | |
tree | 07a875382559b27a9bf69823c738dd6e3748d4ce /src/aptcache.cpp | |
parent | 34e820985beb1c62bfaabe5b502231f2c608ad30 (diff) | |
download | tdeio-apt-84d364900ac9ba64aa658d2bb23bbddbfd1b8b42.tar.gz tdeio-apt-84d364900ac9ba64aa658d2bb23bbddbfd1b8b42.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 00be2d853dc0910207c2a9791067d937e80dcc13)
Diffstat (limited to 'src/aptcache.cpp')
-rw-r--r-- | src/aptcache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aptcache.cpp b/src/aptcache.cpp index c921920..f864f2d 100644 --- a/src/aptcache.cpp +++ b/src/aptcache.cpp @@ -37,7 +37,7 @@ AptCache::~AptCache() {} static TQStringList received(TQString& buffer, char* input, int input_len) { - buffer += TQString::tqfromLatin1(input, input_len); + buffer += TQString::fromLatin1(input, input_len); TQStringList ret = TQStringList::split('\n', buffer, true); if (!buffer.endsWith("\n")) { @@ -255,19 +255,19 @@ void AptCache::receivePolicy(const TQStringList& lines) TQString data( (*l).stripWhiteSpace() ); if (rx_pkgname.exactMatch(*l)) emit token("package", rx_pkgname.cap(1)); - else if (data.tqstartsWith("Installed:", false)) + else if (data.startsWith("Installed:", false)) { data = data.right(data.length() - 11); emit token("installed", data); m_installed = data; } - else if (data.tqstartsWith("Candidate:", false)) + else if (data.startsWith("Candidate:", false)) { data = data.right(data.length() - 11); emit token("candidate", data); m_candidate = data; } - else if (data.tqstartsWith("Version table:", false)) + else if (data.startsWith("Version table:", false)) emit token("version_table", TQString()); else if (rx_location.search(data) > -1) emit token("location", data); |