diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2012-04-17 17:54:41 +0400 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2012-04-17 17:54:41 +0400 |
| commit | 0cb0cdcad8917bd37ac0e14396afbb8f6cf242f5 (patch) | |
| tree | 00c5777c0571bd5fcd3fb884d57e20102e71938b | |
| parent | 03b36d4aa2a8619cb7d2bcd5bc67923fa14293b8 (diff) | |
| download | node-augeas-0cb0cdcad8917bd37ac0e14396afbb8f6cf242f5.tar.gz | |
Prefer prefix ++/-- operators for non-primitive types (via cppcheck)
| -rw-r--r-- | libaugeas.cc | 4 |
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) { |
