diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:40:25 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:40:25 -0600 |
commit | 4374b9aebc67cce74e5c1099d5f4ad1749b05fc6 (patch) | |
tree | 8f99491ad0bd6e9632a912f07acdccebd2af9127 /src/piklab-hex/main.cpp | |
parent | 9d9fe02a944fe0719c2475739411727a729251ad (diff) | |
download | piklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.tar.gz piklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/piklab-hex/main.cpp')
-rw-r--r-- | src/piklab-hex/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/piklab-hex/main.cpp b/src/piklab-hex/main.cpp index 0d9a7cc..70796bb 100644 --- a/src/piklab-hex/main.cpp +++ b/src/piklab-hex/main.cpp @@ -115,7 +115,7 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) if ( _device==0 ) return okExit(i18n("Hex file is valid.")); TQStringList warnings; Device::Memory::WarningTypes wtypes = _memory->fromHexBuffer(_source1, warnings); - if ( wtypes==Device::Memory::NoWarning ) return okExit(i18n("Hex file is compatible with device \"%1\".").tqarg(_device->name())); + if ( wtypes==Device::Memory::NoWarning ) return okExit(i18n("Hex file is compatible with device \"%1\".").arg(_device->name())); return errorExit(warnings.join("\n"), EXEC_ERROR); } if ( command=="info" ) { @@ -169,7 +169,7 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) if ( firstInSecond && secondInFirst ) return okExit(i18n("The two hex files have the same content.")); if (firstInSecond) log(Log::LineType::Information, i18n("The first hex file is a subset of the second one.")); if (secondInFirst) log(Log::LineType::Information, i18n("The second hex file is a subset of the first one.")); - return errorExit(i18n("The two hex files are different at address %1.").tqarg(toHexLabel(it.key(), 8)), EXEC_ERROR); + return errorExit(i18n("The two hex files are different at address %1.").arg(toHexLabel(it.key(), 8)), EXEC_ERROR); } if ( command=="checksum" ) { TQStringList warnings; @@ -177,10 +177,10 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) for (uint i=0; i<uint(warnings.count()); i++) log(Log::LineType::Warning, warnings[i]); log(Log::LineType::Warning, i18n("Checksum computation is experimental and is not always correct!")); // #### REMOVE ME BitValue cs = _memory->checksum(); - log(Log::LineType::Normal, i18n("Checksum: %1").tqarg(toHexLabel(cs, 4))); + log(Log::LineType::Normal, i18n("Checksum: %1").arg(toHexLabel(cs, 4))); if ( _device->group().name()=="pic" ) { BitValue ucs = static_cast<Pic::Memory *>(_memory)->unprotectedChecksum(); - if ( ucs!=cs ) log(Log::LineType::Information, i18n("Unprotected checksum: %1").tqarg(toHexLabel(ucs, 4))); + if ( ucs!=cs ) log(Log::LineType::Information, i18n("Unprotected checksum: %1").arg(toHexLabel(ucs, 4))); } return OK; } @@ -220,7 +220,7 @@ 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; } if ( property=="fill" ) { @@ -232,7 +232,7 @@ CLI::ExitCode CLI::Main::executeSetCommand(const TQString &property, const TQStr if ( !ok ) return errorExit(i18n("Number format not recognized."), 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) @@ -245,7 +245,7 @@ TQString CLI::Main::executeGetCommand(const TQString &property) if ( _fill.isEmpty() ) return i18n("<not set>"); return _fill; } - log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").tqarg(property)); + log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").arg(property)); return TQString(); } |