From babbee4e73b101e2ecc34c3fb896720be0875d63 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Sat, 9 Nov 2013 16:07:28 +0100 Subject: [PATCH] Fixed typos in comments, no functional changes. --- lib/checkclass.cpp | 2 +- lib/checkio.cpp | 2 +- lib/checkother.cpp | 6 +++--- lib/checkother.h | 2 +- lib/library.h | 2 +- lib/mathlib.cpp | 2 +- readme_gui.txt | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 42ba9f934..408031840 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -837,7 +837,7 @@ void CheckClass::privateFunctions() for (std::size_t i = 0; i < classes; ++i) { const Scope * scope = symbolDatabase->classAndStructScopes[i]; - // dont check borland classes with properties.. + // do not check borland classes with properties.. if (Token::findsimplematch(scope->classStart, "; __property ;", scope->classEnd)) continue; diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 531391570..3faec4821 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -332,7 +332,7 @@ void CheckIO::invalidScanf() bool format = false; - // scan the string backwards, so we dont need to keep states + // scan the string backwards, so we do not need to keep states const std::string &formatstr(formatToken->str()); for (unsigned int i = 1; i < formatstr.length(); i++) { if (formatstr[i] == '%') diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 7f1bc11ad..9196a9d7e 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3493,10 +3493,10 @@ void CheckOther::suspiciousStringCompareError(const Token* tok, const std::strin } //----------------------------------------------------------------------------- -// Check is a comparision of two variables leads to condition, which is -// allways true or false. +// Check is a comparison of two variables leads to condition, which is +// always true or false. // For instance: int a = 1; if(isless(a,a)){...} -// In this case isless(a,a) evaluates allways to false. +// In this case isless(a,a) evaluates always to false. // // Reference: // - http://www.cplusplus.com/reference/cmath/ diff --git a/lib/checkother.h b/lib/checkother.h index e7d00f357..dcf4f3f9b 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -266,7 +266,7 @@ public: /** @brief %Check providing too big sleep time intervals on POSIX systems. */ void checkSleepTimeInterval(); - /** @brief %Check for using of comparision functions evaluating always to true or false. */ + /** @brief %Check for using of comparison functions evaluating always to true or false. */ void checkComparisonFunctionIsAlwaysTrueOrFalse(void); private: diff --git a/lib/library.h b/lib/library.h index 72a9b0661..0059eecae 100644 --- a/lib/library.h +++ b/lib/library.h @@ -346,7 +346,7 @@ private: std::map _executableblocks; // keywords for blocks of executable code std::map _exporters; // keywords that export variables/functions to libraries (meta-code/macros) std::map > _importers; // keywords that import variables/functions - std::map > _reflection; // invokation of reflection + std::map > _reflection; // invocation of reflection const ArgumentChecks * getarg(const std::string &functionName, int argnr) const { diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index a98f7480c..3e2fc30d4 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -233,7 +233,7 @@ bool MathLib::isInt(const std::string & s) ++n; // if everything goes good, we are at the end of the string and no digits/character - // is here --> return true, but if something was found eg. 12E+12AA return false + // is here --> return true, but if something was found e.g. 12E+12AA return false return (n >= s.length()); } diff --git a/readme_gui.txt b/readme_gui.txt index 75f7061fb..ba4b2696b 100644 --- a/readme_gui.txt +++ b/readme_gui.txt @@ -17,7 +17,7 @@ Windows: - The easy ways are: -- download Qt SDK from http://qt-project.org/downloads and use QtCreator to build the GUI. --- Download precompiled libaries for your platform and use your preferred +-- Download precompiled libraries for your platform and use your preferred IDE/environment to build GUI. Be careful to download the correct version of library for your compiler! - The harder way is to download Qt sources and build Qt. Compiling Qt alone may