aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-04-17 17:54:41 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-04-17 17:54:41 +0400
commit0cb0cdcad8917bd37ac0e14396afbb8f6cf242f5 (patch)
tree00c5777c0571bd5fcd3fb884d57e20102e71938b
parent03b36d4aa2a8619cb7d2bcd5bc67923fa14293b8 (diff)
downloadnode-augeas-0cb0cdcad8917bd37ac0e14396afbb8f6cf242f5.tar.gz
Prefer prefix ++/-- operators for non-primitive types (via cppcheck)
-rw-r--r--libaugeas.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libaugeas.cc b/libaugeas.cc
index 9601d34..66aefdb 100644
--- a/libaugeas.cc
+++ b/libaugeas.cc
@@ -532,7 +532,7 @@ void afterLoadFile(uv_work_t *req)
std::map<std::string,std::string>::iterator it;
Local<Object> obj = Object::New();
- for (it = lfuv->msgMap.begin(); it != lfuv->msgMap.end(); it++) {
+ for (it = lfuv->msgMap.begin(); it != lfuv->msgMap.end(); ++it) {
obj->Set(Local<String>::New(String::New((*it).first.c_str())),
Local<String>::New(String::New((*it).second.c_str())));
}
@@ -653,7 +653,7 @@ void blockingSaveFile(uv_work_t * req)
std::map<std::string,std::string>::iterator it;
- for (it = lfuv->valMap.begin(); it != lfuv->valMap.end(); it++) {
+ for (it = lfuv->valMap.begin(); it != lfuv->valMap.end(); ++it) {
std::string path = filesPath + "/" + (*it).first;
lfuv->ret = aug_set(lfuv->m_aug, path.c_str(), (*it).second.c_str());
if (lfuv->ret != 0) {