summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
commit5214bb354b508cafc859b4a05b4e5f8ed44767e0 (patch)
treefbf3447860426ec363b14e548b4fec709b6ea12d /Source/cmServerProtocol.cxx
parent602b78aa79f6d99e775fa0a84fb441156d192833 (diff)
downloadCMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.zip
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.gz
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.bz2
Avoid some copies
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index 857ce39..853704b 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -82,7 +82,7 @@ static void getCMakeInputs(const cmGlobalGenerator* gg,
std::vector<std::string>* tmpFiles)
{
const std::string cmakeRootDir = cmSystemTools::GetCMakeRoot() + '/';
- const std::vector<cmMakefile*> makefiles = gg->GetMakefiles();
+ std::vector<cmMakefile*> const& makefiles = gg->GetMakefiles();
for (auto it = makefiles.begin(); it != makefiles.end(); ++it) {
const std::vector<std::string> listFiles = (*it)->GetListFiles();
@@ -850,7 +850,7 @@ static Json::Value DumpTargetsList(
return result;
}
-static Json::Value DumpProjectList(const cmake* cm, const std::string config)
+static Json::Value DumpProjectList(const cmake* cm, std::string const& config)
{
Json::Value result = Json::arrayValue;
@@ -1059,7 +1059,7 @@ cmServerResponse cmServerProtocol1_0::ProcessGlobalSettings(
}
static void setBool(const cmServerRequest& request, const std::string& key,
- std::function<void(bool)> setter)
+ std::function<void(bool)> const& setter)
{
if (request.Data[key].isNull()) {
return;