summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-02 21:01:01 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-04 00:48:21 +0200
commitb1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (patch)
tree3954dea8257e82f7be83a53519c43a7e9418526c /Source/cmOutputConverter.cxx
parent3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff)
downloadcmake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.gz
Pass large types by const&, small types by value
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index d6864a6188..14c986dd88 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -14,7 +14,7 @@
#include "cmStateDirectory.h"
#include "cmSystemTools.h"
-cmOutputConverter::cmOutputConverter(cmStateSnapshot snapshot)
+cmOutputConverter::cmOutputConverter(cmStateSnapshot const& snapshot)
: StateSnapshot(snapshot)
, LinkScriptShell(false)
{
@@ -81,7 +81,7 @@ static bool cmOutputConverterNotAbove(const char* a, const char* b)
bool cmOutputConverter::ContainedInDirectory(std::string const& local_path,
std::string const& remote_path,
- cmStateDirectory directory)
+ cmStateDirectory const& directory)
{
const std::string relativePathTopBinary =
directory.GetRelativePathTopBinary();