diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index cb6d9ecdb..cc8e86e67 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -5307,7 +5307,7 @@ const Function* SymbolDatabase::findFunction(const Token *tok) const currScope = currScope->nestedIn; } } - // Check for contructor + // Check for constructor if (Token::Match(tok, "%name% (|{")) { ValueType vt = ValueType::parseDecl(tok, mSettings); if (vt.typeScope) diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index 250532b81..fc4d5d494 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -106,7 +106,7 @@ void nullPointer_GetPrivateProfileString(LPCTSTR lpAppName, // No warning is expected for 1st arg as nullptr (void)GetPrivateProfileString(nullptr, lpKeyName, lpDefault, lpReturnedString, nSize, lpFileName); - // No warning is expected for 2st arg as nullptr + // No warning is expected for 2nd arg as nullptr (void)GetPrivateProfileString(lpAppName, nullptr, lpDefault, lpReturnedString, nSize, lpFileName); }