From 5112b0ddae6224493a54f690382a4d3b61d18760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 3 Aug 2011 16:11:09 +0200 Subject: [PATCH] astyle formatting --- lib/checkobsoletefunctions.cpp | 2 +- lib/checkobsoletefunctions.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/checkobsoletefunctions.cpp b/lib/checkobsoletefunctions.cpp index d825d0a7a..82fc128ff 100644 --- a/lib/checkobsoletefunctions.cpp +++ b/lib/checkobsoletefunctions.cpp @@ -49,7 +49,7 @@ void CheckObsoleteFunctions::obsoleteFunctions() // function declaration? if (tok->previous() && tok->previous()->isName()) continue; - + std::map::const_iterator it = _obsoleteStandardFunctions.find(tok->str()); if (it != _obsoleteStandardFunctions.end()) { diff --git a/lib/checkobsoletefunctions.h b/lib/checkobsoletefunctions.h index 4c19fbb30..776478f4e 100644 --- a/lib/checkobsoletefunctions.h +++ b/lib/checkobsoletefunctions.h @@ -73,7 +73,7 @@ private: _obsoletePosixFunctions["gethostbyname"] = "Found obsolete function 'gethostbyname'. It is recommended that new applications use the 'getaddrinfo' function"; _obsoletePosixFunctions["usleep"] = "Found obsolete function 'usleep'. It is recommended that new applications use the 'nanosleep' or 'setitimer' function\n" - "Found obsolete function 'usleep'. POSIX.1-2001 declares usleep() function obsolete and POSIX.1-2008 removes it. It is recommended that new applications use the 'nanosleep' or 'setitimer' function."; + "Found obsolete function 'usleep'. POSIX.1-2001 declares usleep() function obsolete and POSIX.1-2008 removes it. It is recommended that new applications use the 'nanosleep' or 'setitimer' function."; _obsoletePosixFunctions["bcmp"]="Found obsolete function 'bcmp'. It is recommended that new applications use the 'memcmp' function"; _obsoletePosixFunctions["bcopy"]="Found obsolete function 'bcopy'. It is recommended that new applications use the 'memmove' or 'memcpy' functions"; @@ -84,8 +84,8 @@ private: _obsoletePosixFunctions["gcvt"]="Found obsolete function 'gcvt'. It is recommended that new applications use the 'sprintf' function"; _obsoletePosixFunctions["ftime"]="Found obsolete function 'ftime'.\n" - "It is recommended that new applications use time(), gettimeofday(), or clock_gettime() instead. " - "For high-resolution timing on Windows, QueryPerformanceCounter() and QueryPerformanceFrequency may be used."; + "It is recommended that new applications use time(), gettimeofday(), or clock_gettime() instead. " + "For high-resolution timing on Windows, QueryPerformanceCounter() and QueryPerformanceFrequency may be used."; _obsoletePosixFunctions["getcontext"] = "Found obsolete function 'getcontext'. Due to portability issues with this function, applications are recommended to be rewritten to use POSIX threads"; _obsoletePosixFunctions["makecontext"] = "Found obsolete function 'makecontext'. Due to portability issues with this function, applications are recommended to be rewritten to use POSIX threads"; @@ -110,7 +110,7 @@ private: _obsoletePosixFunctions["wcswcs"] = "Found obsolete function 'wcswcs'. It is recommended to use the function 'wcsstr' instead"; _obsoleteStandardFunctions["gets"] = "Found obsolete function 'gets'. It is recommended to use the function 'fgets' instead\n" - "Found obsolete function 'gets'. With gets you'll get buffer overruns if the input data too big for the buffer. It is recommended to use the function 'fgets' instead."; + "Found obsolete function 'gets'. With gets you'll get buffer overruns if the input data too big for the buffer. It is recommended to use the function 'fgets' instead."; }