mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: apply readability-redundant-string-init fixes
This commit is contained in:
committed by
Brad King
parent
cac529dd49
commit
a74e689348
@@ -116,7 +116,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn,
|
||||
|
||||
std::string cmFindProgramCommand::FindProgram()
|
||||
{
|
||||
std::string program = "";
|
||||
std::string program;
|
||||
|
||||
if (this->SearchAppBundleFirst || this->SearchAppBundleOnly) {
|
||||
program = FindAppBundle();
|
||||
@@ -214,7 +214,7 @@ std::string cmFindProgramCommand::FindAppBundle()
|
||||
|
||||
std::string cmFindProgramCommand::GetBundleExecutable(std::string bundlePath)
|
||||
{
|
||||
std::string executable = "";
|
||||
std::string executable;
|
||||
(void)bundlePath;
|
||||
#if defined(__APPLE__)
|
||||
// Started with an example on developer.apple.com about finding bundles
|
||||
|
||||
Reference in New Issue
Block a user