From 6346e1aa905fc60787bc11aa96c95847c8292972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 6 Aug 2010 17:44:26 +0200 Subject: [PATCH] Borland C++: Fixed compiler errors --- lib/checkclass.h | 2 +- lib/cppcheck.cpp | 2 +- lib/tokenize.cpp | 1 - lib/tokenize.h | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/checkclass.h b/lib/checkclass.h index c17b53d07..f03dc941c 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -104,8 +104,8 @@ public: /** @brief can member function be const? */ void checkConst(); -private: +public: /** @brief Information about a member variable. Used when checking for uninitialized variables */ class Var { diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 77dbe503d..0b400438f 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -942,7 +942,7 @@ void CppCheck::reportProgress(const std::string &filename, const char stage[], c time1 = time2; // current time in the format "Www Mmm dd hh:mm:ss yyyy" - const std::string str(ctime(&time2)); + const std::string str(std::ctime(&time2)); // format a progress message std::ostringstream ostr; diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index aa92a062d..e61523058 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -29,7 +29,6 @@ #include "settings.h" #include "errorlogger.h" #include "check.h" -#include "classinfo.h" #include #include diff --git a/lib/tokenize.h b/lib/tokenize.h index bb7991fda..1b3560051 100644 --- a/lib/tokenize.h +++ b/lib/tokenize.h @@ -21,11 +21,13 @@ #ifndef tokenizeH #define tokenizeH //--------------------------------------------------------------------------- + +#include "classinfo.h" + #include #include #include -class ClassInfo; class Token; class ErrorLogger; class Settings;