Fixing cppcheck "Prefer prefix ++/-- operators for non-primitive types." issues.
This commit is contained in:
1 parent
07a4403e97
commit
4032bf48a2
24 files changed
+173
-173
No files matched your search
@@ -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