summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-25 12:59:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-25 12:59:08 (GMT)
commite46ca12acf7b166eb865d4818d18a769219368a5 (patch)
tree85f86f599c8a3fe4b79dce024712d3f1a689382f /Source/cmVisualStudio10TargetGenerator.cxx
parent5189c1e322381c65aa849e3b52d9b1e3b3541979 (diff)
parent25243014e5367108604e03682b04dd5ec1e93673 (diff)
downloadCMake-e46ca12acf7b166eb865d4818d18a769219368a5.zip
CMake-e46ca12acf7b166eb865d4818d18a769219368a5.tar.gz
CMake-e46ca12acf7b166eb865d4818d18a769219368a5.tar.bz2
Merge topic 'stdstring'
25243014 cmMakefile: use std::string in more methods; cleanup c_str()s Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1685
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index a511337..ff2ed32 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1366,7 +1366,7 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
si != sources.end(); ++si) {
std::string const& source = si->Source->GetFullPath();
cmSourceGroup* sourceGroup =
- this->Makefile->FindSourceGroup(source.c_str(), sourceGroups);
+ this->Makefile->FindSourceGroup(source, sourceGroups);
groupsUsed.insert(sourceGroup);
}
@@ -1538,7 +1538,7 @@ void cmVisualStudio10TargetGenerator::WriteGroupSources(
cmSourceFile const* sf = s.SourceFile;
std::string const& source = sf->GetFullPath();
cmSourceGroup* sourceGroup =
- this->Makefile->FindSourceGroup(source.c_str(), sourceGroups);
+ this->Makefile->FindSourceGroup(source, sourceGroups);
std::string const& filter = sourceGroup->GetFullName();
this->WriteString("<", 2);
std::string path = this->ConvertPath(source, s.RelativePath);