From 9e7b087832ee120dc02cfcc8c00459a88084ed65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 7 Aug 2010 12:26:42 +0200 Subject: [PATCH] Refactoring: Made CheckClass members private --- lib/checkclass.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/checkclass.h b/lib/checkclass.h index f03dc941c..eec75691d 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -105,7 +105,13 @@ public: /** @brief can member function be const? */ void checkConst(); -public: + /** + * @brief Access control. This needs to be public, otherwise it + * doesn't work to compile with Borland C++ + */ + enum AccessControl { Public, Protected, Private }; + +private: /** @brief Information about a member variable. Used when checking for uninitialized variables */ class Var { @@ -146,8 +152,6 @@ public: Var& operator=(const Var&); // disallow assignments }; - enum AccessControl { Public, Protected, Private }; - struct Func { enum Type { Constructor, CopyConstructor, OperatorEqual, Destructor, Function };