summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
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/cmGlobalGenerator.cxx
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/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 67e272d..b32f4e4 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1482,13 +1482,13 @@ cmGlobalGenerator::CreateQtAutoGeneratorsTargets()
}
cmLinkLineComputer* cmGlobalGenerator::CreateLinkLineComputer(
- cmOutputConverter* outputConverter, cmStateDirectory stateDir) const
+ cmOutputConverter* outputConverter, cmStateDirectory const& stateDir) const
{
return new cmLinkLineComputer(outputConverter, stateDir);
}
cmLinkLineComputer* cmGlobalGenerator::CreateMSVC60LinkLineComputer(
- cmOutputConverter* outputConverter, cmStateDirectory stateDir) const
+ cmOutputConverter* outputConverter, cmStateDirectory const& stateDir) const
{
return new cmMSVC60LinkLineComputer(outputConverter, stateDir);
}