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

@@ -35,7 +35,7 @@ cmDependsJavaParserHelper::~cmDependsJavaParserHelper()
void cmDependsJavaParserHelper::CurrentClass::AddFileNamesForPrinting(
std::vector<std::string>* files, const char* prefix, const char* sep) const
{
std::string rname = "";
std::string rname;
if (prefix) {
rname += prefix;
rname += sep;
@@ -341,7 +341,7 @@ int cmDependsJavaParserHelper::ParseFile(const char* file)
return 0;
}
std::string fullfile = "";
std::string fullfile;
std::string line;
while (cmSystemTools::GetLineFromStream(ifs, line)) {
fullfile += line + "\n";