summaryrefslogtreecommitdiff
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2016-04-20 23:19:48 +0200
committerRolf Eike Beer <eike@sf-mail.de>2016-04-20 23:35:01 +0200
commit2b25ce30ca825765a5c249e455c466802af95116 (patch)
treecff866f46e7814a69c739b3401e266bcc8d4d9d5 /Source/cmGlobalXCodeGenerator.h
parentffedf3527d7e714b6885b822ee85889016418ebb (diff)
downloadcmake-2b25ce30ca825765a5c249e455c466802af95116.tar.gz
make cmGlobalXCodeGenerator::XCodeEscapePath() take a std::string&
All callers already have one, and it was immediately converted to one internally. Just keep the old one around, and only modify it when needed.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index 862746f21a..f7bfb26c42 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -96,7 +96,7 @@ private:
bool CreateGroups(cmLocalGenerator* root,
std::vector<cmLocalGenerator*>&
generators);
- std::string XCodeEscapePath(const char* p);
+ std::string XCodeEscapePath(const std::string& p);
std::string RelativeToSource(const char* p);
std::string RelativeToBinary(const char* p);
std::string ConvertToRelativeForMake(const char* p);