From 189cf29597ad86addb82d84ab36cbfa7247ff461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 5 Apr 2020 10:57:51 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/cppcheck.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 54e279deb..367adfa9f 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -132,14 +132,13 @@ namespace { args += " " + v.get(); } - if(obj.count("python")) { + if (obj.count("python")) { // Python was defined in the config file - if (obj["python"].is()){ + if (obj["python"].is()) { return "Loading " + fileName +" failed. python must not be an array."; } python = obj["python"].get(); - } - else{ + } else { python = ""; } @@ -150,11 +149,12 @@ namespace { static std::string executeAddon(const AddonInfo &addonInfo, const std::string &defaultPythonExe, - const std::string &dumpFile) { + const std::string &dumpFile) +{ std::string pythonExe = (addonInfo.python != "") ? addonInfo.python : defaultPythonExe; - if(pythonExe.find(" ") != std::string::npos){ + if (pythonExe.find(" ") != std::string::npos) { // popen strips the first quote. Needs 2 sets to fully quote. pythonExe = "\"\"" + pythonExe + "\"\""; }