From 0e4cf7a2d60302e6f72fc5bc7ca53d0ff07c451c Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 30 Mar 2011 16:44:16 +0200 Subject: [PATCH] Spell checks --- lib/checkother.cpp | 4 ++-- lib/checkother.h | 2 +- test/testother.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index b5fba8bd1..56a807a0e 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -118,7 +118,7 @@ void CheckOther::clarifyCalculationError(const Token *tok) Severity::style, "clarifyCalculation", "Please clarify precedence: 'a*b?..'\n" - "Found a suspicious multiplication of condition. Please use parantheses to clarify the code. " + "Found a suspicious multiplication of condition. Please use parentheses to clarify the code. " "The code 'a*b?1:2' should be written as either '(a*b)?1:2' or 'a*(b?1:2)'."); } @@ -156,7 +156,7 @@ void CheckOther::clarifyConditionError(const Token *tok) reportError(tok, Severity::style, "clarifyCondition", - "Suspicious condition (assignment+comparison), it can be clarified with parantheses"); + "Suspicious condition (assignment+comparison), it can be clarified with parentheses"); } diff --git a/lib/checkother.h b/lib/checkother.h index 50d6cc80d..1e65b7e6e 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -313,7 +313,7 @@ public: "* assignment of a variable to itself\n" "* mutual exclusion over || always evaluating to true\n" "* exception caught by value instead of by reference\n" - "* Clarify calculation with parantheses\n" + "* Clarify calculation with parentheses\n" "* using increment on boolean\n" "* comparison of a boolean with a non-zero integer\n" "* suspicious condition (assignment+comparison)" diff --git a/test/testother.cpp b/test/testother.cpp index b3810a37c..123632126 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2294,7 +2294,7 @@ private: check("void f() {\n" " if (x = b() < 0) {}\n" "}"); - ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (assignment+comparison), it can be clarified with parantheses\n", errout.str()); + ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses\n", errout.str()); } void incorrectStringCompare()