Skip to content

Commit a56bc00

Browse files
warmsocksdanmar
authored andcommitted
Fixed a typo in lib/checkother.cpp. Corrected spelling errors found by codespell. (danmar#2170)
1 parent 55e8691 commit a56bc00

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

externals/tinyxml/tinyxml2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ class TINYXML2_LIB XMLDocument : public XMLNode
18311831
/// A (trivial) utility function that prints the ErrorStr() to stdout.
18321832
void PrintError() const;
18331833

1834-
/// Return the line where the error occured, or zero if unknown.
1834+
/// Return the line where the error occurred, or zero if unknown.
18351835
int ErrorLineNum() const
18361836
{
18371837
return _errorLineNum;

gui/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
* Returns the path of specified type if not empty. Otherwise returns last check
110110
* path if valid or user's home directory.
111111
* @param type Type of path to obtain
112-
* @return Best path fo provided type
112+
* @return Best path for provided type
113113
*/
114114
QString getPath(const QString &type);
115115

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ void CheckOther::unknownSignCharArrayIndexError(const Token *tok)
14501450
Severity::portability,
14511451
"unknownSignCharArrayIndex",
14521452
"'char' type used as array index.\n"
1453-
"'char' type used as array index. Values greater that 127 will be "
1453+
"'char' type used as array index. Values greater than 127 will be "
14541454
"treated depending on whether 'char' is signed or unsigned on target platform.", CWE758, false);
14551455
}
14561456

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ static bool valueFlowForward(Token * const startToken,
29212921
}
29222922
// Variable changed
29232923
for (int i:getIndirections(values)) {
2924-
// Remove unintialized values if modified
2924+
// Remove uninitialized values if modified
29252925
if (isVariableChanged(tok2, i, settings, tokenlist->isCPP()))
29262926
values.remove_if([&](const ValueFlow::Value& v) {
29272927
return v.isUninitValue() && v.indirect <= i;

test/testsuppressions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,15 @@ class TestSuppressions : public TestFixture {
522522
ASSERT_EQUALS("",errout.str());
523523
}
524524

525-
void suppressingSyntaxErrors() { // syntaxErrors should be suppressable (#7076)
525+
void suppressingSyntaxErrors() { // syntaxErrors should be suppressible (#7076)
526526
std::map<std::string, std::string> files;
527527
files["test.cpp"] = "if if\n";
528528

529529
checkSuppression(files, "syntaxError:test.cpp:1");
530530
ASSERT_EQUALS("", errout.str());
531531
}
532532

533-
void suppressingSyntaxErrorsInline() { // syntaxErrors should be suppressable (#5917)
533+
void suppressingSyntaxErrorsInline() { // syntaxErrors should be suppressible (#5917)
534534
std::map<std::string, std::string> files;
535535
files["test.cpp"] = "double result(0.0);\n"
536536
"_asm\n"
@@ -546,7 +546,7 @@ class TestSuppressions : public TestFixture {
546546
ASSERT_EQUALS("", errout.str());
547547
}
548548

549-
void suppressingSyntaxErrorsWhileFileRead() { // syntaxError while file read should be suppressable (PR #1333)
549+
void suppressingSyntaxErrorsWhileFileRead() { // syntaxError while file read should be suppressible (PR #1333)
550550
std::map<std::string, std::string> files;
551551
files["test.cpp"] = "CONST (genType, KS_CONST) genService[KS_CFG_NR_OF_NVM_BLOCKS] =\n"
552552
"{\n"

0 commit comments

Comments
 (0)