summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-05 13:44:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-06-05 13:44:24 (GMT)
commitc6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7 (patch)
treef4cfbaf9a7901e46f8914351bd52ebe47a132d12 /Source/cmFileCommand.cxx
parent8a68a2ceb355621da21983c2571ead15d2b98dea (diff)
parentb1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (diff)
downloadCMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.zip
CMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.tar.gz
CMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.tar.bz2
Merge topic 'lint-function-args'
b1ec5dea Pass large types by const&, small types by value Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !927
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index c37f5a2..5777fb2 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1121,9 +1121,9 @@ protected:
bool InstallSymlink(const char* fromFile, const char* toFile);
bool InstallFile(const char* fromFile, const char* toFile,
- MatchProperties const& match_properties);
+ MatchProperties match_properties);
bool InstallDirectory(const char* source, const char* destination,
- MatchProperties const& match_properties);
+ MatchProperties match_properties);
virtual bool Install(const char* fromFile, const char* toFile);
virtual std::string const& ToName(std::string const& fromName)
{
@@ -1542,7 +1542,7 @@ bool cmFileCopier::InstallSymlink(const char* fromFile, const char* toFile)
}
bool cmFileCopier::InstallFile(const char* fromFile, const char* toFile,
- MatchProperties const& match_properties)
+ MatchProperties match_properties)
{
// Determine whether we will copy the file.
bool copy = true;
@@ -1596,7 +1596,7 @@ bool cmFileCopier::InstallFile(const char* fromFile, const char* toFile,
bool cmFileCopier::InstallDirectory(const char* source,
const char* destination,
- MatchProperties const& match_properties)
+ MatchProperties match_properties)
{
// Inform the user about this directory installation.
this->ReportCopy(destination, TypeDir,