From d5daba331f24ef2d4543618ba153d531816baec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20M=C3=BCller?= <27155134+arm-in@users.noreply.github.com> Date: Sun, 2 Jan 2022 08:12:08 +0100 Subject: [PATCH] Typos found by running "codespell" (#3659) --- lib/symboldatabase.cpp | 2 +- test/cfg/windows.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }