diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-09-04 14:55:05 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2016-09-04 14:55:05 (GMT) |
commit | 60dcaaea133931a323180c30eafabe4576e72cb8 (patch) | |
tree | 4f1e8855334fe41b9d98076a7c81c0963c0a526d /Source/CPack/cmCPackDragNDropGenerator.cxx | |
parent | fb357e5fef2e7803f2f745b6aa4cf63935628ed6 (diff) | |
download | CMake-60dcaaea133931a323180c30eafabe4576e72cb8.zip CMake-60dcaaea133931a323180c30eafabe4576e72cb8.tar.gz CMake-60dcaaea133931a323180c30eafabe4576e72cb8.tar.bz2 |
tidy: Fix readability-redundant-string-cstr issues
Diffstat (limited to 'Source/CPack/cmCPackDragNDropGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 640e437..14436da 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -330,8 +330,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir, if (!cpack_dmg_disable_applications_symlink) { std::ostringstream application_link; application_link << staging.str() << "/Applications"; - cmSystemTools::CreateSymlink("/Applications", - application_link.str().c_str()); + cmSystemTools::CreateSymlink("/Applications", application_link.str()); } // Optionally add a custom volume icon ... @@ -755,7 +754,7 @@ std::string cmCPackDragNDropGenerator::GetComponentInstallDirNameSuffix( // the current COMPONENT belongs to. std::string groupVar = "CPACK_COMPONENT_" + cmSystemTools::UpperCase(componentName) + "_GROUP"; - const char* _groupName = GetOption(groupVar.c_str()); + const char* _groupName = GetOption(groupVar); if (_groupName) { std::string groupName = _groupName; |