Fixed Cppcheck warning; ::AddonInfo::getFullPath can be static
This commit is contained in:
parent
0a41f1ad6b
commit
341406ab17
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue