Skip to content

Commit babbee4

Browse files
committed
Fixed typos in comments, no functional changes.
1 parent 20b84fc commit babbee4

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/checkclass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ void CheckClass::privateFunctions()
837837
for (std::size_t i = 0; i < classes; ++i) {
838838
const Scope * scope = symbolDatabase->classAndStructScopes[i];
839839

840-
// dont check borland classes with properties..
840+
// do not check borland classes with properties..
841841
if (Token::findsimplematch(scope->classStart, "; __property ;", scope->classEnd))
842842
continue;
843843

lib/checkio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void CheckIO::invalidScanf()
332332

333333
bool format = false;
334334

335-
// scan the string backwards, so we dont need to keep states
335+
// scan the string backwards, so we do not need to keep states
336336
const std::string &formatstr(formatToken->str());
337337
for (unsigned int i = 1; i < formatstr.length(); i++) {
338338
if (formatstr[i] == '%')

lib/checkother.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,10 +3493,10 @@ void CheckOther::suspiciousStringCompareError(const Token* tok, const std::strin
34933493
}
34943494

34953495
//-----------------------------------------------------------------------------
3496-
// Check is a comparision of two variables leads to condition, which is
3497-
// allways true or false.
3496+
// Check is a comparison of two variables leads to condition, which is
3497+
// always true or false.
34983498
// For instance: int a = 1; if(isless(a,a)){...}
3499-
// In this case isless(a,a) evaluates allways to false.
3499+
// In this case isless(a,a) evaluates always to false.
35003500
//
35013501
// Reference:
35023502
// - http://www.cplusplus.com/reference/cmath/

lib/checkother.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class CPPCHECKLIB CheckOther : public Check {
266266
/** @brief %Check providing too big sleep time intervals on POSIX systems. */
267267
void checkSleepTimeInterval();
268268

269-
/** @brief %Check for using of comparision functions evaluating always to true or false. */
269+
/** @brief %Check for using of comparison functions evaluating always to true or false. */
270270
void checkComparisonFunctionIsAlwaysTrueOrFalse(void);
271271

272272
private:

lib/library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class CPPCHECKLIB Library {
346346
std::map<std::string, CodeBlock> _executableblocks; // keywords for blocks of executable code
347347
std::map<std::string, ExportedFunctions> _exporters; // keywords that export variables/functions to libraries (meta-code/macros)
348348
std::map<std::string, std::list<std::string> > _importers; // keywords that import variables/functions
349-
std::map<std::string,std::map<std::string,int> > _reflection; // invokation of reflection
349+
std::map<std::string,std::map<std::string,int> > _reflection; // invocation of reflection
350350

351351

352352
const ArgumentChecks * getarg(const std::string &functionName, int argnr) const {

lib/mathlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ bool MathLib::isInt(const std::string & s)
233233
++n;
234234

235235
// if everything goes good, we are at the end of the string and no digits/character
236-
// is here --> return true, but if something was found eg. 12E+12AA return false
236+
// is here --> return true, but if something was found e.g. 12E+12AA return false
237237
return (n >= s.length());
238238
}
239239

readme_gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Windows:
1717
- The easy ways are:
1818
-- download Qt SDK from http://qt-project.org/downloads and use
1919
QtCreator to build the GUI.
20-
-- Download precompiled libaries for your platform and use your preferred
20+
-- Download precompiled libraries for your platform and use your preferred
2121
IDE/environment to build GUI. Be careful to download the correct version of
2222
library for your compiler!
2323
- The harder way is to download Qt sources and build Qt. Compiling Qt alone may

0 commit comments

Comments
 (0)