summaryrefslogtreecommitdiffstats
path: root/src/piklab-coff
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:40:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:40:25 -0600
commit4374b9aebc67cce74e5c1099d5f4ad1749b05fc6 (patch)
tree8f99491ad0bd6e9632a912f07acdccebd2af9127 /src/piklab-coff
parent9d9fe02a944fe0719c2475739411727a729251ad (diff)
downloadpiklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.tar.gz
piklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/piklab-coff')
-rw-r--r--src/piklab-coff/main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/piklab-coff/main.cpp b/src/piklab-coff/main.cpp
index 9e865e7..dff1b68 100644
--- a/src/piklab-coff/main.cpp
+++ b/src/piklab-coff/main.cpp
@@ -95,11 +95,11 @@ TQString CLI::Main::prettySymbol(const Coff::Symbol &sym)
for (uint i=0; i<uint(sym.auxSymbols().count()); i++) saux += prettyAuxSymbol(*sym.auxSymbols()[i]);
TQString s = (sym.auxSymbols().count()!=0 ? " aux=[" + saux.join(" ") + "]" : TQString());
TQStringList slist;
- if ( sym.sectionType()!=Coff::SymbolSectionType::Nb_Types ) slist += TQString("sectionType=\"%1\"").tqarg(sym.sectionType().label());
- if ( sym.symbolClass()!=Coff::SymbolClass::Nb_Types ) slist += TQString("class=\"%1\"").tqarg(sym.symbolClass().label());
+ if ( sym.sectionType()!=Coff::SymbolSectionType::Nb_Types ) slist += TQString("sectionType=\"%1\"").arg(sym.sectionType().label());
+ if ( sym.symbolClass()!=Coff::SymbolClass::Nb_Types ) slist += TQString("class=\"%1\"").arg(sym.symbolClass().label());
if ( sym.type()!=Coff::SymbolType::Nb_Types ) {
- slist += TQString("type=\"%1\"").tqarg(sym.type().label());
- if ( sym.derivedType()!=Coff::SymbolDerivedType::Nb_Types ) slist += TQString("/\"%1\"").tqarg(sym.derivedType().label());
+ slist += TQString("type=\"%1\"").arg(sym.type().label());
+ if ( sym.derivedType()!=Coff::SymbolDerivedType::Nb_Types ) slist += TQString("/\"%1\"").arg(sym.derivedType().label());
}
return slist.join(" ") + s;
}
@@ -165,8 +165,8 @@ CLI::ExitCode CLI::Main::executeCommandObject(const TQString &command, Log::KeyL
for (uint i=0; i<coff.nbSections(); i++) {
const Coff::Section *s = coff.Coff::Object::section(i);
keys.append(s->name(), i18n("type=\"%1\" address=%2 size=%3 flags=%4")
- .tqarg(s->type()==Coff::SectionType::Nb_Types ? "?" : s->type().label())
- .tqarg(toHexLabel(s->address(), nbCharsAddress)).tqarg(toHexLabel(s->size(), nbCharsAddress)).tqarg(toHexLabel(s->flags(), 8)));
+ .arg(s->type()==Coff::SectionType::Nb_Types ? "?" : s->type().label())
+ .arg(toHexLabel(s->address(), nbCharsAddress)).arg(toHexLabel(s->size(), nbCharsAddress)).arg(toHexLabel(s->flags(), 8)));
}
return OK;
}
@@ -180,13 +180,13 @@ CLI::ExitCode CLI::Main::executeCommandObject(const TQString &command, Log::KeyL
for (uint k=0; k<uint(s->lines().count()); k++) {
if (first) {
first = false;
- keys.append(i18n("section \"%1\":").tqarg(s->name()), TQString());
+ keys.append(i18n("section \"%1\":").arg(s->name()), TQString());
}
const Coff::CodeLine *cl = s->lines()[k];
TQString key = cl->filename() + ":" + TQString::number(cl->line());
if ( !cl->address().isValid() ) {
const Coff::Symbol &sym = *cl->symbol();
- keys.append(key, i18n("symbol \"%1\"").tqarg(sym.name()) + prettySymbol(sym));
+ keys.append(key, i18n("symbol \"%1\"").arg(sym.name()) + prettySymbol(sym));
} else keys.append(key, toHexLabel(cl->address(), nbCharsAddress));
}
}
@@ -235,10 +235,10 @@ CLI::ExitCode CLI::Main::executeSetCommand(const TQString &property, const TQStr
}
TQString s = value.upper();
_device = Device::lister().data(s);
- if ( _device==0 ) return errorExit(i18n("Unknown device \"%1\".").tqarg(s), ARG_ERROR);
+ if ( _device==0 ) return errorExit(i18n("Unknown device \"%1\".").arg(s), ARG_ERROR);
return OK;
}
- return errorExit(i18n("Unknown property \"%1\".").tqarg(property), ARG_ERROR);
+ return errorExit(i18n("Unknown property \"%1\".").arg(property), ARG_ERROR);
}
TQString CLI::Main::executeGetCommand(const TQString &property)
@@ -247,7 +247,7 @@ TQString CLI::Main::executeGetCommand(const TQString &property)
if ( _device==0 ) return i18n("<not set>");
return _device->name();
}
- log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").tqarg(property));
+ log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").arg(property));
return TQString();
}