CheckClass : Refactoring - Removed include and moved struct VAR into the class

This commit is contained in:
Daniel Marjamäki 2008-12-06 17:00:14 +00:00
parent d3f68a9a5d
commit bcccb4bc91
2 changed files with 8 additions and 9 deletions

View File

@ -47,7 +47,7 @@ CheckClass::~CheckClass()
//---------------------------------------------------------------------------
struct VAR *CheckClass::ClassChecking_GetVarList(const TOKEN *tok1)
struct CheckClass::VAR *CheckClass::ClassChecking_GetVarList(const TOKEN *tok1)
{
// Get variable list..
struct VAR *varlist = NULL;

View File

@ -24,14 +24,6 @@
#include "tokenize.h"
#include "settings.h"
#include "errorlogger.h"
#include <list>
struct VAR
{
const char *name;
bool init;
struct VAR *next;
};
class CheckClass
{
@ -48,6 +40,13 @@ public:
void CheckOperatorEq1(); // Warning upon "void operator=(.."
private:
struct VAR
{
const char *name;
bool init;
struct VAR *next;
};
void ClassChecking_VarList_Initialize(const TOKEN *tok1, const TOKEN *ftok, struct VAR *varlist, const char classname[], std::list<std::string> &callstack);
void InitVar(struct VAR *varlist, const char varname[]);
const TOKEN *FindClassFunction( const TOKEN *tok, const char classname[], const char funcname[], int &indentlevel );