From b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 2 Jun 2017 21:01:01 +0200 Subject: Pass large types by const&, small types by value --- Source/cmOutputConverter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/cmOutputConverter.h') diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h index 12a1773191..ae15055ed1 100644 --- a/Source/cmOutputConverter.h +++ b/Source/cmOutputConverter.h @@ -15,7 +15,7 @@ class cmStateDirectory; class cmOutputConverter { public: - cmOutputConverter(cmStateSnapshot snapshot); + cmOutputConverter(cmStateSnapshot const& snapshot); enum OutputFormat { @@ -94,7 +94,7 @@ public: static bool ContainedInDirectory(std::string const& local_path, std::string const& remote_path, - cmStateDirectory directory); + cmStateDirectory const& directory); /** * Convert the given remote path to a relative path with respect to -- cgit v1.2.1