Refactoring: Made CheckClass members private

This commit is contained in:
Daniel Marjamäki 2010-08-07 12:26:42 +02:00
parent e7e86ef333
commit 9e7b087832
1 changed files with 7 additions and 3 deletions

View File

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