clang-tidy: apply readability-redundant-string-init fixes

This commit is contained in:
Daniel Pfeifer
2016-12-10 14:53:06 +01:00
committed by Brad King
parent cac529dd49
commit a74e689348
19 changed files with 31 additions and 31 deletions

View File

@@ -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