Fix typos in sizeofsizeof error message.
This commit is contained in:
parent
85bf4b2be6
commit
df3d98a7c2
|
@ -3734,5 +3734,5 @@ void CheckOther::sizeofsizeof()
|
|||
void CheckOther::sizeofsizeofError(const Token *tok)
|
||||
{
|
||||
reportError(tok, Severity::style,
|
||||
"sizeofsizeof", "Suspicios code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent with 'sizeof(size_t)'.");
|
||||
"sizeofsizeof", "Suspicious code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent to 'sizeof(size_t)'.");
|
||||
}
|
||||
|
|
|
@ -2632,7 +2632,7 @@ private:
|
|||
"{\n"
|
||||
" int i = sizeof sizeof char;\n"
|
||||
"}\n");
|
||||
ASSERT_EQUALS("[test.cpp:3]: (style) Suspicios code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent with 'sizeof(size_t)'.\n", errout.str());
|
||||
ASSERT_EQUALS("[test.cpp:3]: (style) Suspicious code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent to 'sizeof(size_t)'.\n", errout.str());
|
||||
}
|
||||
|
||||
void emptyCatchBlock()
|
||||
|
|
Loading…
Reference in New Issue