summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-26 15:14:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-26 15:15:13 (GMT)
commit5b8ac116c398366947348e3d4772a19d9acdf01d (patch)
treea84d5a741b64a4cca6dd2f917aabb3e2f054115b /Source
parentfa0a3210ee95f5a683cab60f05731fe7bbfe2389 (diff)
parent542d9d5e25bfc6e4841f626f37cf4f425cd0e03b (diff)
downloadCMake-5b8ac116c398366947348e3d4772a19d9acdf01d.zip
CMake-5b8ac116c398366947348e3d4772a19d9acdf01d.tar.gz
CMake-5b8ac116c398366947348e3d4772a19d9acdf01d.tar.bz2
Merge topic 'cpacklog-string-cref'
542d9d5e cmCPackLog: pass std::string by const& Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !892
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackLog.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CPack/cmCPackLog.h b/Source/CPack/cmCPackLog.h
index 96c5882..10deda4 100644
--- a/Source/CPack/cmCPackLog.h
+++ b/Source/CPack/cmCPackLog.h
@@ -85,12 +85,12 @@ public:
//! Set the various prefixes for the logging. SetPrefix sets the generic
// prefix that overwrittes missing ones.
- void SetPrefix(std::string pfx) { this->Prefix = pfx; }
- void SetOutputPrefix(std::string pfx) { this->OutputPrefix = pfx; }
- void SetVerbosePrefix(std::string pfx) { this->VerbosePrefix = pfx; }
- void SetDebugPrefix(std::string pfx) { this->DebugPrefix = pfx; }
- void SetWarningPrefix(std::string pfx) { this->WarningPrefix = pfx; }
- void SetErrorPrefix(std::string pfx) { this->ErrorPrefix = pfx; }
+ void SetPrefix(std::string const& pfx) { this->Prefix = pfx; }
+ void SetOutputPrefix(std::string const& pfx) { this->OutputPrefix = pfx; }
+ void SetVerbosePrefix(std::string const& pfx) { this->VerbosePrefix = pfx; }
+ void SetDebugPrefix(std::string const& pfx) { this->DebugPrefix = pfx; }
+ void SetWarningPrefix(std::string const& pfx) { this->WarningPrefix = pfx; }
+ void SetErrorPrefix(std::string const& pfx) { this->ErrorPrefix = pfx; }
private:
bool Verbose;