From 704123e8152edcd80447659317f1c8b31a1576e6 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 9 Jul 2011 02:23:29 +0000 Subject: Remove the tq in front of these incorrectly TQt4-converted methods/data members: tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/devices/pic/base/pic.cpp | 32 ++++----- src/devices/pic/base/pic_config.cpp | 36 +++++------ src/devices/pic/base/pic_config.h | 10 +-- src/devices/pic/base/pic_protection.cpp | 8 +-- src/devices/pic/base/pic_protection.h | 2 +- src/devices/pic/gui/pic_config_editor.cpp | 4 +- src/devices/pic/gui/pic_config_word_editor.cpp | 12 ++-- src/devices/pic/pic/pic_memory.cpp | 90 +++++++++++++------------- src/devices/pic/pic/pic_memory.h | 10 +-- src/devices/pic/prog/pic_prog.cpp | 2 +- src/devices/pic/xml/pic_xml_to_data.cpp | 28 ++++---- 11 files changed, 117 insertions(+), 117 deletions(-) (limited to 'src/devices/pic') diff --git a/src/devices/pic/base/pic.cpp b/src/devices/pic/base/pic.cpp index b58f480..fd8622b 100644 --- a/src/devices/pic/base/pic.cpp +++ b/src/devices/pic/base/pic.cpp @@ -175,23 +175,23 @@ bool Pic::Data::matchId(BitValue rawId, Device::IdData &idata) const case Architecture::P18F: case Architecture::P18J: nid = rawId.clearMaskBits(0x1F); - idata.revision = rawId.tqmaskWith(0x1F); + idata.revision = rawId.maskWith(0x1F); break; case Architecture::P24F: - nid = (rawId >> 16).tqmaskWith(0x3FFF); - idata.revision = (rawId >> 6).tqmaskWith(0x7); - idata.minorRevision = rawId.tqmaskWith(0x7); + nid = (rawId >> 16).maskWith(0x3FFF); + idata.revision = (rawId >> 6).maskWith(0x7); + idata.minorRevision = rawId.maskWith(0x7); break; case Architecture::P30F: - nid = (rawId >> 16).tqmaskWith(0xFFFF); - idata.revision = (rawId >> 6).tqmaskWith(0x3F); - idata.minorRevision = rawId.tqmaskWith(0x3F); - idata.process = (rawId >> 12).tqmaskWith(0xF); + nid = (rawId >> 16).maskWith(0xFFFF); + idata.revision = (rawId >> 6).maskWith(0x3F); + idata.minorRevision = rawId.maskWith(0x3F); + idata.process = (rawId >> 12).maskWith(0xF); break; case Architecture::P24H: case Architecture::P33F: - nid = (rawId >> 16).tqmaskWith(0xFFFF); - idata.revision = rawId.tqmaskWith(0xFFFF); // ?? + nid = (rawId >> 16).maskWith(0xFFFF); + idata.revision = rawId.maskWith(0xFFFF); // ?? break; case Architecture::Nb_Types: Q_ASSERT(false); break; } @@ -241,7 +241,7 @@ bool Pic::Data::checkCalibration(const Device::Array &data, TQString *message) c } } if ( data.count()==1 ) { - if ( data[0].tqmaskWith(_calibration.opcodeMask)!=_calibration.opcode ) { + if ( data[0].maskWith(_calibration.opcodeMask)!=_calibration.opcode ) { if (message) *message = i18n("Calibration word is not a compatible opcode (%2).") .tqarg(toHexLabel(_calibration.opcode, nbCharsWord(MemoryRangeType::Code))); return false; @@ -326,16 +326,16 @@ Device::Array Pic::Data::gotoInstruction(Address address, bool withPageSelection bool Pic::Data::isGotoInstruction(BitValue instruction) const { switch (_architecture.type()) { - case Architecture::P10X: return ( instruction.tqmaskWith(0xE00)==0xA00 ); - case Architecture::P16X: return ( instruction.tqmaskWith(0xF800)==0x2800 ); - case Architecture::P17C: return ( instruction.tqmaskWith(0xE000)==0xC000 ); + case Architecture::P10X: return ( instruction.maskWith(0xE00)==0xA00 ); + case Architecture::P16X: return ( instruction.maskWith(0xF800)==0x2800 ); + case Architecture::P17C: return ( instruction.maskWith(0xE000)==0xC000 ); case Architecture::P18C: case Architecture::P18F: - case Architecture::P18J: return ( instruction.tqmaskWith(0xFF00)==0xEF00 ); + case Architecture::P18J: return ( instruction.maskWith(0xFF00)==0xEF00 ); case Architecture::P24F: case Architecture::P24H: case Architecture::P30F: - case Architecture::P33F: return ( instruction.tqmaskWith(0xFF0000)==0x040000 ); + case Architecture::P33F: return ( instruction.maskWith(0xFF0000)==0x040000 ); case Architecture::Nb_Types: Q_ASSERT(false); break; } return false; diff --git a/src/devices/pic/base/pic_config.cpp b/src/devices/pic/base/pic_config.cpp index 811a38e..6e59d90 100644 --- a/src/devices/pic/base/pic_config.cpp +++ b/src/devices/pic/base/pic_config.cpp @@ -280,30 +280,30 @@ const Pic::Config::Data Pic::Config::DATA[] = { { { 0, 0 }, Fixed, { { 0, 0 } } } }; -TQMap *Pic::Config::_tqmasks = 0; -TQMap &Pic::Config::tqmasks() +TQMap *Pic::Config::_masks = 0; +TQMap &Pic::Config::masks() { - if ( _tqmasks==0 ) { - _tqmasks = new TQMap; + if ( _masks==0 ) { + _masks = new TQMap; for (uint i=0; DATA[i].tqmask.name; i++) { - (*_tqmasks)[DATA[i].tqmask.name] = MapData(i, -1); + (*_masks)[DATA[i].tqmask.name] = MapData(i, -1); if ( DATA[i].type==MemoryRange ) { for (uint k=0; k=0 ) return i18n("%1 for block %2").tqarg(s).tqarg(mp.block); return s; @@ -312,10 +312,10 @@ TQString Pic::Config::tqmaskLabel(const TQString &tqmask) const Pic::Config::Mask *Pic::Config::findMask(const TQString &tqmask, uint *wordIndex) const { for (uint i=0; i>(TQDataStream &s, Config::Mask &tqmask) TQDataStream &Pic::operator <<(TQDataStream &s, const Config::Word &word) { - s << word.name << word.ignoredCNames << word.wtqmask << word.ptqmask << word.ctqmask << word.bvalue << word.tqmasks; + s << word.name << word.ignoredCNames << word.wtqmask << word.ptqmask << word.ctqmask << word.bvalue << word.masks; return s; } TQDataStream &Pic::operator >>(TQDataStream &s, Config::Word &word) { - s >> word.name >> word.ignoredCNames >> word.wtqmask >> word.ptqmask >> word.ctqmask >> word.bvalue >> word.tqmasks; + s >> word.name >> word.ignoredCNames >> word.wtqmask >> word.ptqmask >> word.ctqmask >> word.bvalue >> word.masks; return s; } diff --git a/src/devices/pic/base/pic_config.h b/src/devices/pic/base/pic_config.h index 67c0b1c..6e13210 100644 --- a/src/devices/pic/base/pic_config.h +++ b/src/devices/pic/base/pic_config.h @@ -48,9 +48,9 @@ public: public: TQString name; TQStringList ignoredCNames; - BitValue wtqmask, ptqmask, ctqmask; // write, protected, and checksum bits tqmasks + BitValue wtqmask, ptqmask, ctqmask; // write, protected, and checksum bits masks BitValue bvalue; // blank value - TQValueVector tqmasks; // ordered from lower to higher + TQValueVector masks; // ordered from lower to higher BitValue usedMask() const; }; @@ -62,7 +62,7 @@ public: const Value *findValue(const TQString &tqmask, const TQString &value) const; const Mask *findMask(const TQString &tqmask, uint *wordIndex = 0) const; static bool hasMaskName(const TQString &tqmask); - static TQString tqmaskLabel(const TQString &tqmask); + static TQString maskLabel(const TQString &tqmask); bool checkValueName(const TQString &tqmask, const TQString &name) const; static TQString valueLabel(const TQString &tqmask, const TQString &name); @@ -73,8 +73,8 @@ private: MapData(int i, int b) : index(i), block(b) {} int index, block; }; - static TQMap &tqmasks(); - static TQMap *_tqmasks; // tqmask name -> index in DATA + static TQMap &masks(); + static TQMap *_masks; // tqmask name -> index in DATA struct NameData { const char *name, *label; diff --git a/src/devices/pic/base/pic_protection.cpp b/src/devices/pic/base/pic_protection.cpp index 7af925c..4c08c45 100644 --- a/src/devices/pic/base/pic_protection.cpp +++ b/src/devices/pic/base/pic_protection.cpp @@ -29,7 +29,7 @@ bool Pic::Protection::isAllProtectedValueName(const TQString &name) const Pic::Protection::Family Pic::Protection::family() const { if ( _config.findMask("WRTBS") ) return CodeGuard; - TQString tqmask = tqmaskName(ProgramProtected, MemoryRangeType::Code); + TQString tqmask = maskName(ProgramProtected, MemoryRangeType::Code); if ( _config.findMask(TQString("%1_%2").tqarg(tqmask).tqarg(0)) ) return BlockProtection; if ( _config.findMask(tqmask) ) return BasicProtection; return NoProtection; @@ -79,10 +79,10 @@ 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(tqmaskName(type, MemoryRangeType::Code)).tqarg(block); + return TQString("%1_%2").tqarg(maskName(type, MemoryRangeType::Code)).tqarg(block); } -TQString Pic::Protection::tqmaskName(Type type, MemoryRangeType mtype) const +TQString Pic::Protection::maskName(Type type, MemoryRangeType mtype) const { Q_ASSERT( type!=Nb_Types ); switch (mtype.type()) { @@ -215,7 +215,7 @@ Pic::Protection::ProtectedRange Pic::Protection::extractRange(const TQString &tq for (MemoryRangeType type; type<=MemoryRangeType::Nb_Types; ++type) { // #### danger: <= isBootBlock = ( type==MemoryRangeType::Nb_Types ); for (uint k=0; k1 ) { page = new TQWidget(tabw); diff --git a/src/devices/pic/gui/pic_config_word_editor.cpp b/src/devices/pic/gui/pic_config_word_editor.cpp index bfa55e4..82b24b7 100644 --- a/src/devices/pic/gui/pic_config_word_editor.cpp +++ b/src/devices/pic/gui/pic_config_word_editor.cpp @@ -123,11 +123,11 @@ Pic::ConfigWordEditor::ConfigWordEditor(Memory &memory, uint ci, bool withWordEd TQGridLayout *grid = new TQGridLayout(_top); grid->setColStretch(2, 1); const Config::Word &cword = device().config()._words[ci]; - _combos.resize(cword.tqmasks.count()); + _combos.resize(cword.masks.count()); uint nbChars = device().nbCharsWord(MemoryRangeType::Config); for (uint k=0; k<_combos.count(); k++) { - const Config::Mask &ctqmask = cword.tqmasks[k]; - TQLabel *label = new TQLabel(Config::tqmaskLabel(ctqmask.name) + ":", this); + const Config::Mask &ctqmask = cword.masks[k]; + TQLabel *label = new TQLabel(Config::maskLabel(ctqmask.name) + ":", this); grid->addWidget(label, k, 0); label = new TQLabel(ctqmask.name, this); grid->addWidget(label, k, 1); @@ -148,7 +148,7 @@ void Pic::ConfigWordEditor::setReadOnly(bool readOnly) if (_mdb) _mdb->setReadOnly(readOnly); const Config::Word &cword = device().config()._words[_configIndex]; for (uint k=0; k<_combos.count(); k++) { - const Config::Mask &ctqmask = cword.tqmasks[k]; + const Config::Mask &ctqmask = cword.masks[k]; _combos[k]->setEnabled(!readOnly && !ctqmask.value.isOverlapping(cword.ptqmask) && ctqmask.values.count()!=1); } } @@ -158,7 +158,7 @@ void Pic::ConfigWordEditor::slotModified() BitValue v = memory().word(MemoryRangeType::Config, _configIndex); //qDebug("BinWordEditor::slotModified %i: %s", _configIndex, toHex(v, 4).data()); for (uint k=0; k<_combos.count(); k++) { - const Config::Mask &ctqmask = device().config()._words[_configIndex].tqmasks[k]; + const Config::Mask &ctqmask = device().config()._words[_configIndex].masks[k]; v = v.clearMaskBits(ctqmask.value); v |= ctqmask.values[_combos[k]->index()].value; // set value } @@ -174,7 +174,7 @@ void Pic::ConfigWordEditor::updateDisplay() uint nbChars = device().nbCharsWord(MemoryRangeType::Config); //qDebug("BinWordEditor::updateDisplay %i: %s", _configIndex, toHex(v, 4).data()); for (uint k=0; k<_combos.count(); k++) { - const Config::Mask &ctqmask = device().config()._words[_configIndex].tqmasks[k]; + const Config::Mask &ctqmask = device().config()._words[_configIndex].masks[k]; for (int i=ctqmask.values.count()-1; i>=0; i--) { if ( ctqmask.values[i].value.isInside(v) ) { if ( ctqmask.values[i].isValid() ) _combos[k]->setItem(i); diff --git a/src/devices/pic/pic/pic_memory.cpp b/src/devices/pic/pic/pic_memory.cpp index 8567790..cff538d 100644 --- a/src/devices/pic/pic/pic_memory.cpp +++ b/src/devices/pic/pic/pic_memory.cpp @@ -58,7 +58,7 @@ Device::Array Pic::Memory::arrayForWriting(MemoryRangeType type) const { Device::Array data = _ranges[type]; for (uint i=0; ivalue); + BitValue v = word(MemoryRangeType::Config, i).maskWith(tqmask->value); for (uint k=0; kvalues.count()); k++) if ( v.isInside(tqmask->values[k].value) ) return tqmask->values[k].name; Q_ASSERT(false); @@ -122,8 +122,8 @@ AddressRange Pic::Memory::bootRange() const return AddressRange(start, 2 * size - 1); // instruction words } // only CPB - TQString tqmaskName = protection.bootMaskName(Protection::ProgramProtected); - const Config::Mask *tqmask = device().config().findMask(tqmaskName); + TQString maskName = protection.bootMaskName(Protection::ProgramProtected); + const Config::Mask *tqmask = device().config().findMask(maskName); for (uint k=0; kvalues.count()); k++) { AddressRangeVector rv = protection.extractRanges(tqmask->values[k].name, MemoryRangeType::Code); if ( !rv.isEmpty() ) return rv[0]; @@ -142,9 +142,9 @@ AddressRange Pic::Memory::blockRange(uint i) const Address start = (previous.isEmpty() ? device().range(MemoryRangeType::Code).start : previous.end + 1); return AddressRange(start, device().range(MemoryRangeType::Code).end); } - TQString tqmaskName = protection.blockSizeMaskName(i); + TQString maskName = protection.blockSizeMaskName(i); if ( protection.family()==Protection::CodeGuard ) { // secure segment - TQString value = findValue(tqmaskName); + TQString value = findValue(maskName); Q_ASSERT( !value.isEmpty() ); uint size = value.toUInt(); if ( size==0 ) return AddressRange(); @@ -153,7 +153,7 @@ AddressRange Pic::Memory::blockRange(uint i) const return AddressRange(start, 2 * size - 1); } AddressRange previous = (i==0 ? bootRange() : blockRange(i-1)); - const Config::Mask *tqmask = device().config().findMask(tqmaskName); + const Config::Mask *tqmask = device().config().findMask(maskName); for (uint k=0; kvalues.count()); k++) { AddressRangeVector rv = protection.extractRanges(tqmask->values[k].name, MemoryRangeType::Code); if ( !rv.isEmpty() ) return AddressRange(previous.end + 1, rv[0].end); @@ -165,8 +165,8 @@ AddressRange Pic::Memory::blockRange(uint i) const AddressRange Pic::Memory::bootProtectedRange(Protection::Type ptype) const { const Protection &protection = device().config().protection(); - TQString tqmaskName = protection.bootMaskName(ptype); - TQString value = findValue(tqmaskName); + TQString maskName = protection.bootMaskName(ptype); + TQString value = findValue(maskName); if ( value.isEmpty() ) return AddressRange(); if ( protection.family()!=Protection::CodeGuard ) { if ( protection.extractRanges(value, MemoryRangeType::Code).isEmpty() ) return AddressRange(); @@ -179,8 +179,8 @@ AddressRange Pic::Memory::bootProtectedRange(Protection::Type ptype) const AddressRange Pic::Memory::blockProtectedRange(Protection::Type ptype, uint i) const { const Protection &protection = device().config().protection(); - TQString tqmaskName = protection.blockMaskName(ptype, i); - TQString value = findValue(tqmaskName); + TQString maskName = protection.blockMaskName(ptype, i); + TQString value = findValue(maskName); if ( value.isEmpty() ) return AddressRange(); if ( protection.family()!=Protection::CodeGuard ) { if ( protection.extractRanges(value, MemoryRangeType::Code).isEmpty() ) return AddressRange(); @@ -202,9 +202,9 @@ AddressRangeVector Pic::Memory::protectedRanges(Protection::Type ptype, MemoryRa } } if ( protection.family()!=Protection::CodeGuard ) { - TQString tqmaskName = protection.tqmaskName(ptype, type); - TQString value = findValue(tqmaskName); - //qDebug("%s %s", tqmaskName.latin1(), value.latin1()); + TQString maskName = protection.maskName(ptype, type); + TQString value = findValue(maskName); + //qDebug("%s %s", maskName.latin1(), value.latin1()); if ( !value.isEmpty() ) { AddressRangeVector tmp = protection.extractRanges(value, type); Q_ASSERT( tmp.count()==1 ); @@ -216,14 +216,14 @@ AddressRangeVector Pic::Memory::protectedRanges(Protection::Type ptype, MemoryRa void Pic::Memory::setBootProtection(bool on, Protection::Type ptype) { - TQString tqmaskName = device().config().protection().bootMaskName(ptype); - setProtection(on, tqmaskName, ptype); + TQString maskName = device().config().protection().bootMaskName(ptype); + setProtection(on, maskName, ptype); } void Pic::Memory::setBlockProtection(bool on, Protection::Type ptype, uint block) { - TQString tqmaskName = device().config().protection().blockMaskName(ptype, block); - setProtection(on, tqmaskName, ptype); + TQString maskName = device().config().protection().blockMaskName(ptype, block); + setProtection(on, maskName, ptype); } void Pic::Memory::setProtection(bool on, Protection::Type ptype, MemoryRangeType type) @@ -236,13 +236,13 @@ void Pic::Memory::setProtection(bool on, Protection::Type ptype, MemoryRangeType return; } } - setProtection(on, protection.tqmaskName(ptype, type), ptype); + setProtection(on, protection.maskName(ptype, type), ptype); } -void Pic::Memory::setConfigValue(const TQString &tqmaskName, const TQString &valueName) +void Pic::Memory::setConfigValue(const TQString &maskName, const TQString &valueName) { uint i; - const Config::Mask *tqmask = device().config().findMask(tqmaskName, &i); + const Config::Mask *tqmask = device().config().findMask(maskName, &i); Q_ASSERT(tqmask); BitValue v = word(MemoryRangeType::Config, i); v = v.clearMaskBits(tqmask->value); @@ -254,9 +254,9 @@ void Pic::Memory::setConfigValue(const TQString &tqmaskName, const TQString &val Q_ASSERT(false); } -void Pic::Memory::setProtection(bool on, const TQString &tqmaskName, Protection::Type ptype) +void Pic::Memory::setProtection(bool on, const TQString &maskName, Protection::Type ptype) { - const Config::Mask *tqmask = device().config().findMask(tqmaskName, 0); + const Config::Mask *tqmask = device().config().findMask(maskName, 0); if( tqmask==0 ) return; const Protection &protection = device().config().protection(); TQString valueName; @@ -268,25 +268,25 @@ void Pic::Memory::setProtection(bool on, const TQString &tqmaskName, Protection: || (!on && protection.isNoneProtectedValueName(tqmask->values[k].name)) ) valueName = tqmask->values[k].name; } } - setConfigValue(tqmaskName, valueName); + setConfigValue(maskName, valueName); } -bool Pic::Memory::hasFlagOn(const TQString &tqmaskName, bool valueIfNotPresent) const +bool Pic::Memory::hasFlagOn(const TQString &maskName, bool valueIfNotPresent) const { - const Config::Mask *tqmask = device().config().findMask(tqmaskName, 0); + const Config::Mask *tqmask = device().config().findMask(maskName, 0); if ( tqmask==0 ) return valueIfNotPresent; Q_ASSERT(tqmask); Q_ASSERT( tqmask->values.count()==2 ); - return ( findValue(tqmaskName)=="On" ); + return ( findValue(maskName)=="On" ); } -void Pic::Memory::setFlagOn(const TQString &tqmaskName, bool on) +void Pic::Memory::setFlagOn(const TQString &maskName, bool on) { - const Config::Mask *tqmask = device().config().findMask(tqmaskName, 0); + const Config::Mask *tqmask = device().config().findMask(maskName, 0); Q_UNUSED(tqmask); Q_ASSERT(tqmask); Q_ASSERT( tqmask->values.count()==2 ); - setConfigValue(tqmaskName, on ? "On" : "Off"); + setConfigValue(maskName, on ? "On" : "Off"); } void Pic::Memory::checksumCheckFill() @@ -345,8 +345,8 @@ BitValue Pic::Memory::checksum() const BitValue cs = 0x0000; const Protection &protection = device().config().protection(); if ( protection.family()==Protection::BasicProtection ) { - TQString tqmaskName = protection.tqmaskName(Protection::ProgramProtected, MemoryRangeType::Code); - TQString valueName = findValue(tqmaskName); + TQString maskName = protection.maskName(Protection::ProgramProtected, MemoryRangeType::Code); + TQString valueName = findValue(maskName); const TQMap &checksums = device().checksums(); if ( checksums.tqcontains(valueName) ) { // #### REMOVE ME !! algorithm = checksums[valueName].algorithm; @@ -357,7 +357,7 @@ BitValue Pic::Memory::checksum() const //qDebug("algo: %s", Checksum::ALGORITHM_DATA[algorithm].name); for (uint i=0; i &inRange); - TQString findValue(const TQString &tqmaskName) const; - bool hasFlagOn(const TQString &tqmaskName, bool valueIfNotPresent) const; - void setFlagOn(const TQString &tqmaskName, bool on); - void setProtection(bool on, const TQString &tqmaskName, Protection::Type ptype); + TQString findValue(const TQString &maskName) const; + bool hasFlagOn(const TQString &maskName, bool valueIfNotPresent) const; + void setFlagOn(const TQString &maskName, bool on); + void setProtection(bool on, const TQString &maskName, Protection::Type ptype); AddressRange bootProtectedRange(Protection::Type ptype) const; AddressRange blockProtectedRange(Protection::Type ptype, uint block) const; }; diff --git a/src/devices/pic/prog/pic_prog.cpp b/src/devices/pic/prog/pic_prog.cpp index e882529..da0b1ca 100644 --- a/src/devices/pic/prog/pic_prog.cpp +++ b/src/devices/pic/prog/pic_prog.cpp @@ -375,7 +375,7 @@ bool Programmer::PicBase::restoreBandGapBits() BitValue ptqmask = device()->config()._words[i].ptqmask; if ( ptqmask==0 ) continue; cdata[i] = cdata[i].clearMaskBits(ptqmask); - cdata[i] |= data[i].tqmaskWith(ptqmask); + cdata[i] |= data[i].maskWith(ptqmask); } if ( !specific()->canWriteRange(Pic::MemoryRangeType::Config) ) { log(Log::LineType::Warning, i18n("Could not restore band gap bits because programmer does not support writing config bits.")); diff --git a/src/devices/pic/xml/pic_xml_to_data.cpp b/src/devices/pic/xml/pic_xml_to_data.cpp index 7f727ff..eeb293a 100644 --- a/src/devices/pic/xml/pic_xml_to_data.cpp +++ b/src/devices/pic/xml/pic_xml_to_data.cpp @@ -219,13 +219,13 @@ Pic::Config::Word toConfigWord(TQDomElement config) if ( tqmask.attribute("name").isEmpty() ) qFatal(TQString("Empty tqmask name in config %1").tqarg(cword.name)); Config::Mask ctqmask = toConfigMask(tqmask, cword.ptqmask); if ( !ctqmask.value.isInside(gtqmask) ) qFatal(TQString("Mask value not inside tqmask in config %1").tqarg(cword.name)); - for (uint i=0; i_architecture==Pic::Architecture::P30F ) cword.ctqmask = cword.wtqmask; @@ -443,15 +443,15 @@ virtual void processDevice(TQDomElement device) if ( cwords[i].name.isNull() ) qFatal(TQString("Config word #%1 not defined").tqarg(i)); data()->_config->_words[i] = cwords[i]; const Config::Word &word = data()->_config->_words[i]; - for (uint j=0; j_config->_words[i]; - for (uint j=0; j_config->_words[i]; - for (uint j=0; jnbCharsWord(MemoryRangeType::Config))).tqarg(tqmask.name)); @@ -489,8 +489,8 @@ virtual void processDevice(TQDomElement device) TQMap valueNames; const Pic::Protection &protection = data()->_config->protection(); if ( protection.family()==Protection::BasicProtection ) { - TQString tqmaskName = protection.tqmaskName(Protection::ProgramProtected, MemoryRangeType::Code); - const Pic::Config::Mask *tqmask = data()->_config->findMask(tqmaskName); + TQString maskName = protection.maskName(Protection::ProgramProtected, MemoryRangeType::Code); + const Pic::Config::Mask *tqmask = data()->_config->findMask(maskName); Q_ASSERT(tqmask); for (uint i=0; ivalues.count()); i++) valueNames[tqmask->values[i].name] = false; } -- cgit v1.2.1