diff options
author | Christoph GrĂ¼ninger <foss@grueninger.de> | 2024-02-14 13:24:32 (GMT) |
---|---|---|
committer | Christoph GrĂ¼ninger <foss@grueninger.de> | 2024-02-14 19:46:02 (GMT) |
commit | 3850def5e61a3ab542286df748021ecb2fa055b5 (patch) | |
tree | 8a6cd171b483866a300d099da54c86b17ef0efa5 /Source/CPack | |
parent | 95a9494974200e9aef67e59bbb6e87c5bb09f23d (diff) | |
download | CMake-3850def5e61a3ab542286df748021ecb2fa055b5.zip CMake-3850def5e61a3ab542286df748021ecb2fa055b5.tar.gz CMake-3850def5e61a3ab542286df748021ecb2fa055b5.tar.bz2 |
Use prefix ++ operators for non-primitive types
Prevent unnecessary calls to copy constructor
Found by Cppcheck (postfixOperator)
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 11d90c0..f0ea690 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -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, |