Fixing cppcheck "Prefer prefix ++/-- operators for non-primitive types." issues.
This commit is contained in:
@@ -416,7 +416,7 @@ void ConfigFile::writeBuffer() const {
|
||||
tmpElement->SetAttribute("type", "list");
|
||||
list<string> tempList = configBufferList[i].defaultListValue;
|
||||
list<string>::iterator it;
|
||||
for(it = tempList.begin(); it != tempList.end(); it++) {
|
||||
for(it = tempList.begin(); it != tempList.end(); ++it) {
|
||||
|
||||
TiXmlElement *tmpSubElement = new TiXmlElement(configBufferList[i].defaultValue);
|
||||
tmpElement->LinkEndChild( tmpSubElement );
|
||||
@@ -460,7 +460,7 @@ void ConfigFile::updateConfig(ConfigState myConfigState) {
|
||||
tmpElement->SetAttribute("type", "list");
|
||||
list<string> tempList = configList[i].defaultListValue;
|
||||
list<string>::iterator it;
|
||||
for(it = tempList.begin(); it != tempList.end(); it++) {
|
||||
for(it = tempList.begin(); it != tempList.end(); ++it) {
|
||||
|
||||
TiXmlElement *tmpSubElement = new TiXmlElement(configList[i].defaultValue);
|
||||
tmpElement->LinkEndChild( tmpSubElement );
|
||||
@@ -545,7 +545,7 @@ void ConfigFile::updateConfig(ConfigState myConfigState) {
|
||||
tmpElement->SetAttribute("type", "list");
|
||||
list<string> tempList = tempStringList2;
|
||||
list<string>::iterator it;
|
||||
for(it = tempList.begin(); it != tempList.end(); it++) {
|
||||
for(it = tempList.begin(); it != tempList.end(); ++it) {
|
||||
|
||||
TiXmlElement *tmpSubElement = new TiXmlElement(tempString1);
|
||||
tmpElement->LinkEndChild( tmpSubElement );
|
||||
@@ -566,7 +566,7 @@ void ConfigFile::updateConfig(ConfigState myConfigState) {
|
||||
tmpElement->SetAttribute("type", "list");
|
||||
list<string> tempList = configList[i].defaultListValue;
|
||||
list<string>::iterator it;
|
||||
for(it = tempList.begin(); it != tempList.end(); it++) {
|
||||
for(it = tempList.begin(); it != tempList.end(); ++it) {
|
||||
|
||||
TiXmlElement *tmpSubElement = new TiXmlElement(configList[i].defaultValue);
|
||||
tmpElement->LinkEndChild( tmpSubElement );
|
||||
@@ -641,7 +641,7 @@ list<int> ConfigFile::readConfigIntList(string varName) const
|
||||
string tempString;
|
||||
int tempInt;
|
||||
list<string>::iterator it;
|
||||
for(it = tempStringList.begin(); it != tempStringList.end(); it++) {
|
||||
for(it = tempStringList.begin(); it != tempStringList.end(); ++it) {
|
||||
|
||||
isst.str(*it);
|
||||
isst >> tempInt;
|
||||
@@ -700,7 +700,7 @@ void ConfigFile::writeConfigIntList(string varName, list<int> varCont)
|
||||
if (configBufferList[i].name == varName) {
|
||||
string tempString;
|
||||
list<int>::iterator it;
|
||||
for(it = varCont.begin(); it != varCont.end(); it++) {
|
||||
for(it = varCont.begin(); it != varCont.end(); ++it) {
|
||||
|
||||
intToString << (*it);
|
||||
stringList.push_back(intToString.str());
|
||||
|
||||
Reference in New Issue
Block a user