summaryrefslogtreecommitdiffstats
path: root/Source/cmExportCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-09 11:59:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-09 11:59:23 (GMT)
commit34334c098f85004242f109857193f5f8cdce697d (patch)
tree4dee809ad1bbd9a3e22bb3c0c74c0891b5fb3ae4 /Source/cmExportCommand.cxx
parenta9badfa6f470452f830f95db77e1ccc8eb65ce93 (diff)
parentb6802cd506cd459f94fae7e4cadc8b94daa09d59 (diff)
downloadCMake-34334c098f85004242f109857193f5f8cdce697d.zip
CMake-34334c098f85004242f109857193f5f8cdce697d.tar.gz
CMake-34334c098f85004242f109857193f5f8cdce697d.tar.bz2
Merge topic 'cmGeneratedFileStream_string'
b6802cd506 cmGeneratedFileStream: clang-tidy applied to remove redundant ``c_str`` calls a688defcc6 cmGeneratedFileStream: Use ``std::string const&`` instead of ``const char*`` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2266
Diffstat (limited to 'Source/cmExportCommand.cxx')
-rw-r--r--Source/cmExportCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index 4e1d771..7d5c4f8 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -339,7 +339,7 @@ void cmExportCommand::StorePackageRegistryDir(std::string const& package,
fname += "/";
fname += hash;
if (!cmSystemTools::FileExists(fname)) {
- cmGeneratedFileStream entry(fname.c_str(), true);
+ cmGeneratedFileStream entry(fname, true);
if (entry) {
entry << content << "\n";
} else {