summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-15 15:32:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-15 15:47:07 (GMT)
commitc871446abc9f9f33bd302ed059037d719eb9e2d9 (patch)
tree7189bca12aad188ed10b739f1c98607891bf7266 /Source/cmGlobalXCodeGenerator.cxx
parent1fe9e49bad0ad4f540ceda028106d9af89084946 (diff)
downloadCMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.zip
CMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.tar.gz
CMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.tar.bz2
cmSourceGroup: Return strings from GetName and GetFullName
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index dfc1bed..41fe5d2 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2797,13 +2797,13 @@ cmXCodeObject* cmGlobalXCodeGenerator::CreateOrGetPBXGroup(
// If it's the default source group (empty name) then put the source file
// directly in the tgroup...
//
- if (std::string(sg->GetFullName()).empty()) {
+ if (sg->GetFullName().empty()) {
this->GroupNameMap[s] = tgroup;
return tgroup;
}
// It's a recursive folder structure, let's find the real parent group
- if (std::string(sg->GetFullName()) != std::string(sg->GetName())) {
+ if (sg->GetFullName() != sg->GetName()) {
std::string curr_folder = target;
curr_folder += "/";
for (auto const& folder :