summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-21 19:08:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-10-21 19:08:01 (GMT)
commitae5686f8d0e4f153991d5a7c0cf7406fa7d3468c (patch)
tree7e4833de51d717fbd989acfe7c1ea1a1594f94d6 /Source/cmMakefile.h
parent4f9fcd356b07143a570b39cb5be72d4e3a4e83dc (diff)
parentcc1139cc304b6bd4c8403d437cf08f73e06e243a (diff)
downloadCMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.zip
CMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.tar.gz
CMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.tar.bz2
Merge topic 'remove-redundant-c_str'
cc1139cc strings: Remove redundant calls to std::string::c_str()
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 164290a..824513b 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -466,7 +466,7 @@ public:
this->cmStartDirectory = dir;
cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
this->cmStartDirectory =
- cmSystemTools::CollapseFullPath(this->cmStartDirectory.c_str());
+ cmSystemTools::CollapseFullPath(this->cmStartDirectory);
this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR",
this->cmStartDirectory.c_str());
}
@@ -479,7 +479,7 @@ public:
this->StartOutputDirectory = lib;
cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);
this->StartOutputDirectory =
- cmSystemTools::CollapseFullPath(this->StartOutputDirectory.c_str());
+ cmSystemTools::CollapseFullPath(this->StartOutputDirectory);
cmSystemTools::MakeDirectory(this->StartOutputDirectory.c_str());
this->AddDefinition("CMAKE_CURRENT_BINARY_DIR",
this->StartOutputDirectory.c_str());