summaryrefslogtreecommitdiffstats
path: root/src/coff/base/text_coff.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitd98fea1f859d23e1b1220a65d7a8eda3b757fd08 (patch)
treea7e6a450baf5017f93f73636f9e8f9b5e9a56f05 /src/coff/base/text_coff.cpp
parent704123e8152edcd80447659317f1c8b31a1576e6 (diff)
downloadpiklab-d98fea1f859d23e1b1220a65d7a8eda3b757fd08.tar.gz
piklab-d98fea1f859d23e1b1220a65d7a8eda3b757fd08.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/coff/base/text_coff.cpp')
-rw-r--r--src/coff/base/text_coff.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coff/base/text_coff.cpp b/src/coff/base/text_coff.cpp
index 1a749fe..52dd503 100644
--- a/src/coff/base/text_coff.cpp
+++ b/src/coff/base/text_coff.cpp
@@ -48,11 +48,11 @@ PURL::Url Coff::TextObject::urlForFilename(const TQString &filename) const
const Coff::Section *Coff::TextObject::section(const CodeLine &cline) const
{
- if ( cline.section().instructions().tqcontains(cline.address()) ) return &cline.section();
+ if ( cline.section().instructions().contains(cline.address()) ) return &cline.section();
// possible for coff generated by picc...
for (uint i=0; i<uint(_sections.count()); i++) {
if ( _sections[i]->type()!=SectionType::Code ) continue;
- if ( _sections[i]->instructions().tqcontains(cline.address()) ) return _sections[i];
+ if ( _sections[i]->instructions().contains(cline.address()) ) return _sections[i];
}
return 0;
}
@@ -68,7 +68,7 @@ void Coff::TextObject::init() const
if ( _sections[i]->type()!=SectionType::Code ) continue;
for (uint k=0; k<uint(_sections[i]->lines().count()); k++) {
TQString filename = _sections[i]->lines()[k]->filename();
- if ( filename.isEmpty() || fd.tqcontains(filename) ) continue;
+ if ( filename.isEmpty() || fd.contains(filename) ) continue;
_filenames.append(filename);
FileData fdata;
fdata.url = urlForFilename(filename);
@@ -103,7 +103,7 @@ void Coff::TextObject::init() const
//qDebug("%s: %s", ldata.codes[k].address.latin1(), ldata.codes[k].opcode.latin1());
opcodeWidth = qMax(opcodeWidth, uint(ldata.codes[k].opcode.length()));
TQString s = sec->instructions()[address].disasm;
- int j = s.tqfind('\t');
+ int j = s.find('\t');
if ( j!=-1 ) {
ldata.codes[k].disasm2 = s.mid(j+1);
disasm2Width = qMax(disasm2Width, uint(ldata.codes[k].disasm2.length()));
@@ -178,7 +178,7 @@ TQValueVector<const Coff::CodeLine *> Coff::TextObject::findCodeLines(const TQSt
int Coff::TextObject::lineForAddress(const PURL::Url &url, Address address) const
{
init();
- if ( url==_url && _lines.tqcontains(address) ) return _lines[address]-1;
+ if ( url==_url && _lines.contains(address) ) return _lines[address]-1;
for (uint i=0; i<uint(_sections.count()); i++) {
if ( _sections[i]->type()!=SectionType::Code ) continue;
for (uint k=0; k<uint(_sections[i]->lines().count()); k++) {
@@ -206,7 +206,7 @@ TQMap<PURL::Url, uint> Coff::TextObject::sourceLinesForAddress(Address address)
slines[urlForFilename(filename)] = cl->line()-1;
}
}
- if ( _lines.tqcontains(address) ) slines[_url] = _lines[address] - 1;
+ if ( _lines.contains(address) ) slines[_url] = _lines[address] - 1;
return slines;
}