From f7ceb2957839027e8027a9a4c0dfff730cb9b704 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/piklab-test/base/generator_check.cpp | 22 +++++++++++----------- src/piklab-test/checksum/checksum_check.cpp | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'src/piklab-test') diff --git a/src/piklab-test/base/generator_check.cpp b/src/piklab-test/base/generator_check.cpp index f7ce96f..1df1a9c 100644 --- a/src/piklab-test/base/generator_check.cpp +++ b/src/piklab-test/base/generator_check.cpp @@ -130,10 +130,10 @@ bool ConfigGeneratorCheck::execute(const Device::Data &data) for (uint i=0; isetConfigValue(ctqmask.name, ctqmask.values[l].name); + if ( !cmask.values[l].name.isEmpty() ) _memory2->setConfigValue(cmask.name, cmask.values[l].name); } } } @@ -158,22 +158,22 @@ bool ConfigGeneratorCheck::execute(const Device::Data &data) BitValue word2 = _memory2->word(Pic::MemoryRangeType::Config, i); if ( word1==word2 ) continue; for (uint k=0; ksetUserIdToUnprotectedChecksum(); for (uint i=0; ivalues.count()-1; k>=0; k--) { - if ( tqmask->values[k].name.isEmpty() ) continue; - if ( protection.isNoneProtectedValueName(tqmask->values[k].name) ) continue; - _memory->setConfigValue(pmName, tqmask->values[k].name); + const Pic::Config::Mask *mask = data.config().findMask(pmName, 0); + for (int k=mask->values.count()-1; k>=0; k--) { + if ( mask->values[k].name.isEmpty() ) continue; + if ( protection.isNoneProtectedValueName(mask->values[k].name) ) continue; + _memory->setConfigValue(pmName, mask->values[k].name); break; } } @@ -57,8 +57,8 @@ bool ChecksumCheck::checkChecksum(BitValue checksum, const TQString &label) void ChecksumCheck::checkChecksum(const Pic::Data &pdata, const TQString &maskName, const TQString &valueName, bool &ok) { if ( !pdata.checksums().contains(valueName) ) { - const Pic::Config::Mask *tqmask = pdata.config().findMask(maskName); - TQString label = valueName + (tqmask ? "/" + tqmask->name : TQString()); + const Pic::Config::Mask *mask = pdata.config().findMask(maskName); + TQString label = valueName + (mask ? "/" + mask->name : TQString()); printf("Missing checksum for \"%s\"", label.latin1()); return; } @@ -84,10 +84,10 @@ bool ChecksumCheck::execute(const Device::Data &data) break; case Pic::Protection::BasicProtection: { TQString maskName = protection.maskName(Pic::Protection::ProgramProtected, Pic::MemoryRangeType::Code); - const Pic::Config::Mask *tqmask = pdata.config().findMask(maskName); - Q_ASSERT(tqmask); - for (uint i=0; ivalues.count(); i++) { - TQString valueName = tqmask->values[i].name; + const Pic::Config::Mask *mask = pdata.config().findMask(maskName); + Q_ASSERT(mask); + for (uint i=0; ivalues.count(); i++) { + TQString valueName = mask->values[i].name; if ( valueName.isEmpty() ) continue; // invalid value checkChecksum(pdata, maskName, valueName, ok); } -- cgit v1.2.1