From 341406ab17ba398aaba8977ab749369208b09b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 29 Jun 2019 07:59:55 +0200 Subject: [PATCH] Fixed Cppcheck warning; ::AddonInfo::getFullPath can be static --- lib/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 0d3392bba..6f5d7c067 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -64,7 +64,7 @@ namespace { std::string scriptFile; std::string args; - std::string getFullPath(const std::string &fileName, const std::string &exename) const { + static std::string getFullPath(const std::string &fileName, const std::string &exename) { if (Path::fileExists(fileName)) return fileName;