From 2c15c384d1cf7928e6e636c73fa095ec798d6fb5 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 5 Dec 2020 08:00:31 +0100 Subject: [PATCH] Fixed some typos, there are no functional changes intended --- test/cfg/std.cpp | 20 ++++++++++---------- test/testunusedprivfunc.cpp | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 9247a1e1c..7c0c97f72 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -519,16 +519,16 @@ void uninitvar_cosh(void) void uninitvar_feraiseexcept(void) { - int excepts; + int expects; // cppcheck-suppress uninitvar - (void)std::feraiseexcept(excepts); + (void)std::feraiseexcept(expects); } void uninitvar_fesetexceptflag(fexcept_t* flagp) { - int excepts; + int expects; // cppcheck-suppress uninitvar - (void)std::fesetexceptflag(flagp, excepts); + (void)std::fesetexceptflag(flagp, expects); } void uninitvar_feclearexcept(void) @@ -3223,13 +3223,13 @@ void nullPointer_fegetenv(void) (void)std::fegetenv(0); } -void nullPointer_fegetexceptflag(int excepts) +void nullPointer_fegetexceptflag(int expects) { fexcept_t* flagp = 0; // cppcheck-suppress nullPointer - (void)std::fegetexceptflag(flagp,excepts); + (void)std::fegetexceptflag(flagp,expects); // cppcheck-suppress nullPointer - (void)std::fegetexceptflag(0,excepts); + (void)std::fegetexceptflag(0,expects); } void nullPointer_feholdexcept(void) @@ -3250,13 +3250,13 @@ void nullPointer_fesetenv(void) (void)std::fesetenv(0); } -void nullPointer_fesetexceptflag(int excepts) +void nullPointer_fesetexceptflag(int expects) { fexcept_t* flagp = 0; // cppcheck-suppress nullPointer - (void)std::fesetexceptflag(flagp,excepts); + (void)std::fesetexceptflag(flagp,expects); // cppcheck-suppress nullPointer - (void)std::fesetexceptflag(0,excepts); + (void)std::fesetexceptflag(0,expects); } void nullPointer_feupdateenv(void) diff --git a/test/testunusedprivfunc.cpp b/test/testunusedprivfunc.cpp index 0b0598d43..a365ae695 100644 --- a/test/testunusedprivfunc.cpp +++ b/test/testunusedprivfunc.cpp @@ -77,7 +77,7 @@ private: TEST_CASE(multiFile); TEST_CASE(unknownBaseTemplate); // ticket #2580 - TEST_CASE(hierarchie_loop); // ticket 5590 + TEST_CASE(hierarchy_loop); // ticket 5590 TEST_CASE(staticVariable); //ticket #5566 @@ -752,7 +752,7 @@ private: ASSERT_EQUALS("", errout.str()); } - void hierarchie_loop() { + void hierarchy_loop() { check("class InfiniteB : InfiniteA {\n" " class D {\n" " };\n"