mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
clang-tidy: apply readability-redundant-string-init fixes
This commit is contained in:
committed by
Brad King
parent
cac529dd49
commit
a74e689348
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user