Skip to content

Commit 2bf7294

Browse files
Fix member shadowing (#3563)
1 parent 9c31e0c commit 2bf7294

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ Settings::Settings()
7676
certainty.setEnabled(Certainty::normal, true);
7777
}
7878

79-
void Settings::loadCppcheckCfg(const std::string &exename)
79+
void Settings::loadCppcheckCfg(const std::string &executable)
8080
{
81-
std::string fileName = Path::getPathFromFilename(exename) + "cppcheck.cfg";
81+
std::string fileName = Path::getPathFromFilename(executable) + "cppcheck.cfg";
8282
#ifdef FILESDIR
8383
if (Path::fileExists(FILESDIR "/cppcheck.cfg"))
8484
fileName = FILESDIR "/cppcheck.cfg";

lib/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class CPPCHECKLIB Settings : public cppcheck::Platform {
9595
public:
9696
Settings();
9797

98-
void loadCppcheckCfg(const std::string &exename);
98+
void loadCppcheckCfg(const std::string &executable);
9999

100100
/** @brief addons, either filename of python/json file or json data */
101101
std::list<std::string> addons;

0 commit comments

Comments
 (0)