diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:40:25 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:40:25 -0600 |
commit | 4374b9aebc67cce74e5c1099d5f4ad1749b05fc6 (patch) | |
tree | 8f99491ad0bd6e9632a912f07acdccebd2af9127 /src/devices/pic/base/pic_protection.cpp | |
parent | 9d9fe02a944fe0719c2475739411727a729251ad (diff) | |
download | piklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.tar.gz piklab-4374b9aebc67cce74e5c1099d5f4ad1749b05fc6.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/devices/pic/base/pic_protection.cpp')
-rw-r--r-- | src/devices/pic/base/pic_protection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/pic/base/pic_protection.cpp b/src/devices/pic/base/pic_protection.cpp index d91f1f7..8fac920 100644 --- a/src/devices/pic/base/pic_protection.cpp +++ b/src/devices/pic/base/pic_protection.cpp @@ -30,7 +30,7 @@ Pic::Protection::Family Pic::Protection::family() const { if ( _config.findMask("WRTBS") ) return CodeGuard; TQString mask = maskName(ProgramProtected, MemoryRangeType::Code); - if ( _config.findMask(TQString("%1_%2").tqarg(mask).tqarg(0)) ) return BlockProtection; + if ( _config.findMask(TQString("%1_%2").arg(mask).arg(0)) ) return BlockProtection; if ( _config.findMask(mask) ) return BasicProtection; return NoProtection; } @@ -79,7 +79,7 @@ TQString Pic::Protection::blockMaskName(Type type, uint block) const if ( type==StandardSecurity || type==HighSecurity ) return (block==0 ? "SSSEC" : "GSSEC"); return TQString(); } - return TQString("%1_%2").tqarg(maskName(type, MemoryRangeType::Code)).tqarg(block); + return TQString("%1_%2").arg(maskName(type, MemoryRangeType::Code)).arg(block); } TQString Pic::Protection::maskName(Type type, MemoryRangeType mtype) const @@ -341,7 +341,7 @@ uint Pic::Protection::nbBlocks() const { if ( family()==CodeGuard ) return 2; // codeguard : secure segment + general segment for (uint i=0; i<MAX_NB_BLOCKS; i++) - if ( _config.findMask(TQString("CP_%1").tqarg(i))==0 ) return i; + if ( _config.findMask(TQString("CP_%1").arg(i))==0 ) return i; return MAX_NB_BLOCKS; } @@ -357,5 +357,5 @@ TQString Pic::Protection::blockLabel(uint i) const if ( i==0 ) return i18n("Secure Segment"); return i18n("General Segment"); } - return i18n("Block #%1").tqarg(i); + return i18n("Block #%1").arg(i); } |