Fixing cppcheck "Prefer prefix ++/-- operators for non-primitive types." issues.

This commit is contained in:
lotodore
2011-02-09 14:33:39 +00:00
parent 07a4403e97
commit 4032bf48a2
24 changed files with 173 additions and 173 deletions
@@ -51,7 +51,7 @@ int myMessageDialogImpl::exec(int messageId, QString msg, QString title, QPixmap
currentMsgShowList = myConfig->readConfigStringList("IfInfoMessageShowList");
list<std::string>::iterator it1;
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); it1++) {
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); ++it1) {
QString tmpString = QString::fromUtf8(it1->c_str());
if(QString("%1").arg(messageId) == tmpString.split(",").at(1)) {
@@ -99,7 +99,7 @@ void myMessageDialogImpl::writeConfig()
if(checkBox->isChecked()) {
list<std::string>::iterator it1;
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); it1++) {
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); ++it1) {
QString tmpString = QString::fromUtf8(it1->c_str());
if(QString("%1").arg(currentMsgId) == tmpString.split(",").at(1)) {
@@ -121,7 +121,7 @@ bool myMessageDialogImpl::checkIfMesssageWillBeDisplayed(int id)
currentMsgShowList = myConfig->readConfigStringList("IfInfoMessageShowList");
list<std::string>::iterator it1;
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); it1++) {
for(it1= currentMsgShowList.begin(); it1 != currentMsgShowList.end(); ++it1) {
QString tmpString = QString::fromUtf8(it1->c_str());
if(QString("%1").arg(id) == tmpString.split(",").at(1)) {