summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-02 19:01:01 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-03 22:48:21 (GMT)
commitb1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (patch)
tree3954dea8257e82f7be83a53519c43a7e9418526c /Source/cmState.h
parent3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff)
downloadCMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.zip
CMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.gz
CMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.bz2
Pass large types by const&, small types by value
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 1a5738f..e03ad89 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -36,18 +36,20 @@ public:
cmStateSnapshot CreateBaseSnapshot();
cmStateSnapshot CreateBuildsystemDirectorySnapshot(
- cmStateSnapshot originSnapshot);
- cmStateSnapshot CreateFunctionCallSnapshot(cmStateSnapshot originSnapshot,
- std::string const& fileName);
- cmStateSnapshot CreateMacroCallSnapshot(cmStateSnapshot originSnapshot,
- std::string const& fileName);
- cmStateSnapshot CreateIncludeFileSnapshot(cmStateSnapshot originSnapshot,
- std::string const& fileName);
- cmStateSnapshot CreateVariableScopeSnapshot(cmStateSnapshot originSnapshot);
- cmStateSnapshot CreateInlineListFileSnapshot(cmStateSnapshot originSnapshot,
- std::string const& fileName);
- cmStateSnapshot CreatePolicyScopeSnapshot(cmStateSnapshot originSnapshot);
- cmStateSnapshot Pop(cmStateSnapshot originSnapshot);
+ cmStateSnapshot const& originSnapshot);
+ cmStateSnapshot CreateFunctionCallSnapshot(
+ cmStateSnapshot const& originSnapshot, std::string const& fileName);
+ cmStateSnapshot CreateMacroCallSnapshot(
+ cmStateSnapshot const& originSnapshot, std::string const& fileName);
+ cmStateSnapshot CreateIncludeFileSnapshot(
+ cmStateSnapshot const& originSnapshot, std::string const& fileName);
+ cmStateSnapshot CreateVariableScopeSnapshot(
+ cmStateSnapshot const& originSnapshot);
+ cmStateSnapshot CreateInlineListFileSnapshot(
+ cmStateSnapshot const& originSnapshot, std::string const& fileName);
+ cmStateSnapshot CreatePolicyScopeSnapshot(
+ cmStateSnapshot const& originSnapshot);
+ cmStateSnapshot Pop(cmStateSnapshot const& originSnapshot);
static cmStateEnums::CacheEntryType StringToCacheEntryType(const char*);
static const char* CacheEntryTypeToString(cmStateEnums::CacheEntryType);