Skip to content

Commit 4c8bb9a

Browse files
committed
fix a few typos
1 parent 4b873ed commit 4c8bb9a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

addons/threadsafety.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def checkstatic(data):
2222
else:
2323
type = 'variable'
2424
if var.isConst:
25-
reportError(var.typeStartToken, 'warning', 'Local constant static ' + type + ' \'' + var.nameToken.str + '\', dangerous if it is initialized in parallell threads', 'threadsafety')
25+
reportError(var.typeStartToken, 'warning', 'Local constant static ' + type + ' \'' + var.nameToken.str + '\', dangerous if it is initialized in parallel threads', 'threadsafety')
2626
else:
2727
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
2828

lib/checkunusedfunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static bool isOperatorFunction(const std::string & funcName)
248248
* Conversion functions must be a member function (at least for gcc), so no
249249
* need to cover them for unused functions.
250250
*
251-
* To speed up the comparision, not the whole list of operators is used.
251+
* To speed up the comparison, not the whole list of operators is used.
252252
* Instead only the character after the operator prefix is checked to be a
253253
* none alpa numeric value, but the '_', to cover function names like
254254
* "operator_unused". In addition the following valid operators are checked:

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4042,7 +4042,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
40424042
checkVariableCallMatch(callarg, funcarg, same, fallback1, fallback2);
40434043
}
40444044

4045-
// check for a match with refrence of a variable
4045+
// check for a match with reference of a variable
40464046
else if (Token::Match(arguments[j], "* %var% ,|)")) {
40474047
const Variable * callarg = check->getVariableFromVarId(arguments[j]->next()->varId());
40484048
if (callarg) {

man/cppcheck.1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ There are false positives with this option. Each result must be carefully invest
555555
</refsect1>
556556
<refsect1 id="see_also">
557557
<title>SEE ALSO</title>
558-
<!-- In alpabetical order. -->
558+
<!-- In alphabetical order. -->
559559
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
560560
</refsect1>
561561
</refentry>

0 commit comments

Comments
 (0)