diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 13:53:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:13 (GMT) |
commit | a74e6893480e491959e9165106f199a8cd0edd57 (patch) | |
tree | 7b4973da863935de096b7ed31223a847f690abc2 /Source/cmDependsJavaParserHelper.cxx | |
parent | cac529dd495f05dcd24d33dd5fa595ff28eb7a60 (diff) | |
download | CMake-a74e6893480e491959e9165106f199a8cd0edd57.zip CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.gz CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.bz2 |
clang-tidy: apply readability-redundant-string-init fixes
Diffstat (limited to 'Source/cmDependsJavaParserHelper.cxx')
-rw-r--r-- | Source/cmDependsJavaParserHelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsJavaParserHelper.cxx b/Source/cmDependsJavaParserHelper.cxx index b5d68d0..f5998ef 100644 --- a/Source/cmDependsJavaParserHelper.cxx +++ b/Source/cmDependsJavaParserHelper.cxx @@ -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"; |