Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent 93a6198212
commit 00be2d853d

@ -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);

Loading…
Cancel
Save