Fixing cppcheck "Prefer prefix ++/-- operators for non-primitive types." issues.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user