Fixed typos in comments, no functional changes.

This commit is contained in:
Martin Ettl 2013-11-09 16:07:28 +01:00
parent 20b84fcdee
commit babbee4e73
7 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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] == '%')

View File

@ -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/

View File

@ -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:

View File

@ -346,7 +346,7 @@ private:
std::map<std::string, CodeBlock> _executableblocks; // keywords for blocks of executable code
std::map<std::string, ExportedFunctions> _exporters; // keywords that export variables/functions to libraries (meta-code/macros)
std::map<std::string, std::list<std::string> > _importers; // keywords that import variables/functions
std::map<std::string,std::map<std::string,int> > _reflection; // invokation of reflection
std::map<std::string,std::map<std::string,int> > _reflection; // invocation of reflection
const ArgumentChecks * getarg(const std::string &functionName, int argnr) const {

View File

@ -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());
}

View File

@ -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