diff --git a/lib/path.cpp b/lib/path.cpp index ebec372c8..bddf1eed3 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -73,7 +73,7 @@ std::string Path::simplifyPath(std::string originalPath) originalPath = originalPath.erase(0, toErase); } - std::string subPath = ""; + std::string subPath; std::vector pathParts; for (std::size_t i = 0; i < originalPath.size(); ++i) { if (originalPath[i] == '/' || originalPath[i] == '\\') { diff --git a/test/testsuite.cpp b/test/testsuite.cpp index 4cc80497b..ce60979bf 100644 --- a/test/testsuite.cpp +++ b/test/testsuite.cpp @@ -278,7 +278,7 @@ void TestFixture::processOptions(const options& args) std::size_t TestFixture::runTests(const options& args) { std::string classname(args.which_test()); - std::string testname(""); + std::string testname; if (classname.find("::") != std::string::npos) { testname = classname.substr(classname.find("::") + 2); classname.erase(classname.find("::")); diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index a5a2b30c7..a21476486 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -8095,7 +8095,7 @@ private: // Preprocess file.. Preprocessor preprocessor(settings0); std::list configurations; - std::string filedata = ""; + std::string filedata; std::istringstream fin(raw_code); preprocessor.preprocess(fin, filedata, configurations, emptyString, settings0.includePaths); const std::string code = preprocessor.getcode(filedata, emptyString, emptyString);