Skip to content

Commit 279b660

Browse files
committed
Fix Cppcheck warnings about mismatching argument names
1 parent ea215c3 commit 279b660

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/checkio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CPPCHECKLIB CheckIO : public Check {
110110
void seekOnAppendedFileError(const Token *tok);
111111
void invalidScanfError(const Token *tok);
112112
void wrongPrintfScanfArgumentsError(const Token* tok,
113-
const std::string &function,
113+
const std::string &functionName,
114114
unsigned int numFormat,
115115
unsigned int numFunction);
116116
void wrongPrintfScanfPosixParameterPositionError(const Token* tok, const std::string& functionName,
@@ -127,7 +127,7 @@ class CPPCHECKLIB CheckIO : public Check {
127127
void invalidPrintfArgTypeError_float(const Token* tok, unsigned int numFormat, const std::string& specifier, const ArgumentInfo* argInfo);
128128
void invalidLengthModifierError(const Token* tok, unsigned int numFormat, const std::string& modifier);
129129
void invalidScanfFormatWidthError(const Token* tok, unsigned int numFormat, int width, const Variable *var, char c);
130-
static void argumentType(std::ostream & s, const ArgumentInfo * argInfo);
130+
static void argumentType(std::ostream & os, const ArgumentInfo * argInfo);
131131
static Severity::SeverityType getSeverity(const ArgumentInfo *argInfo);
132132

133133
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const {

lib/checkmemoryleak.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ class CPPCHECKLIB CheckMemoryLeak {
6969

7070
/**
7171
* Report error. Similar with the function Check::reportError
72-
* @param location the token where the error occurs
72+
* @param tok the token where the error occurs
7373
* @param severity the severity of the bug
7474
* @param id type of message
7575
* @param msg text
7676
* @param cwe cwe number
7777
*/
78-
void reportErr(const Token *location, Severity::SeverityType severity, const std::string &id, const std::string &msg, const CWE &cwe) const;
78+
void reportErr(const Token *tok, Severity::SeverityType severity, const std::string &id, const std::string &msg, const CWE &cwe) const;
7979

8080
/**
8181
* Report error. Similar with the function Check::reportError

lib/checknullpointer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CPPCHECKLIB CheckNullPointer : public Check {
8585

8686
void nullPointerError(const Token *tok); // variable name unknown / doesn't exist
8787
void nullPointerError(const Token *tok, const std::string &varname, bool inconclusive, bool defaultArg, bool possible);
88-
void nullPointerError(const Token *tok, const std::string &varname, const Token* nullcheck, bool inconclusive);
88+
void nullPointerError(const Token *tok, const std::string &varname, const Token* nullCheck, bool inconclusive);
8989
private:
9090

9191
/** Get error messages. Used by --errorlist */

0 commit comments

Comments
 (0)