avoid adding multiple consecutive string literals to std::string

While at it change some single character additions to be of type char.
This commit is contained in:
Rolf Eike Beer
2019-08-18 14:22:11 +02:00
parent 06e32a089d
commit da26b3be89
20 changed files with 43 additions and 77 deletions

View File

@@ -469,8 +469,7 @@ bool HandleStringsCommand(std::vector<std::string> const& args,
// TODO: should work without temp file, but just on a memory buffer
std::string binaryFileName =
status.GetMakefile().GetCurrentBinaryDirectory();
binaryFileName += "/CMakeFiles";
binaryFileName += "/FileCommandStringsBinaryFile";
binaryFileName += "/CMakeFiles/FileCommandStringsBinaryFile";
if (cmHexFileConverter::TryConvert(fileName, binaryFileName)) {
fileName = binaryFileName;
}