diff options
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); } |