summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-05-26 19:58:51 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-05-26 19:58:51 (GMT)
commit618fb23fc9838d344e2033c64bfc1a3a55bb7f61 (patch)
treeabaabfaae8a9f5448d7ee062c757c61254792995 /Source/CPack/cmCPackDebGenerator.cxx
parentacd8a73044e879286f0cfa24b54497a8307f204b (diff)
downloadCMake-618fb23fc9838d344e2033c64bfc1a3a55bb7f61.zip
CMake-618fb23fc9838d344e2033c64bfc1a3a55bb7f61.tar.gz
CMake-618fb23fc9838d344e2033c64bfc1a3a55bb7f61.tar.bz2
Pass arguments that are not modified as const&.
Use clang-tidy's performance-unnecessary-value-param checker to find value parameter declarations of expensive to copy types that are not modified inside the function. Ignore findings in kwsys. After applying the fix-its, manually change `const T&` to `T const&`.
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 7fd76df..1ad4152 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -50,8 +50,8 @@ int cmCPackDebGenerator::InitializeInternal()
return this->Superclass::InitializeInternal();
}
-int cmCPackDebGenerator::PackageOnePack(std::string initialTopLevel,
- std::string packageName)
+int cmCPackDebGenerator::PackageOnePack(std::string const& initialTopLevel,
+ std::string const& packageName)
{
int retval = 1;
// Begin the archive for this pack