mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
Use prefix ++ operators for non-primitive types
Prevent unnecessary calls to copy constructor Found by Cppcheck (postfixOperator)
This commit is contained in:
1 parent
95a9494974
commit
3850def5e6
1 file changed
+1
-1
@@ -360,7 +360,7 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
|
||||
cmCPackLogger(cmCPackLog::LOG_DEBUG, "Find files" << std::endl);
|
||||
cmsys::Glob gl;
|
||||
std::string top = *it;
|
||||
it++;
|
||||
++it;
|
||||
std::string subdir = *it;
|
||||
std::string findExpr = cmStrCat(top, "/*");
|
||||
cmCPackLogger(cmCPackLog::LOG_OUTPUT,
|
||||
|
||||
Reference in new issue
Block a user