correct use of const functions
This commit is contained in:
parent
b01c6a27f6
commit
b677e5c164
@ -430,12 +430,12 @@ void EventsMngr::executeEvents()
|
||||
m_ParseFun = NULL;
|
||||
}
|
||||
|
||||
int EventsMngr::getArgNum()
|
||||
int EventsMngr::getArgNum() const
|
||||
{
|
||||
return m_ParsePos + 1;
|
||||
}
|
||||
|
||||
const char* EventsMngr::getArgString(int a)
|
||||
const char* EventsMngr::getArgString(int a) const
|
||||
{
|
||||
if ( a < 0 || a > m_ParsePos )
|
||||
return "";
|
||||
@ -455,7 +455,7 @@ const char* EventsMngr::getArgString(int a)
|
||||
}
|
||||
}
|
||||
|
||||
int EventsMngr::getArgInteger(int a)
|
||||
int EventsMngr::getArgInteger(int a) const
|
||||
{
|
||||
if ( a < 0 || a > m_ParsePos )
|
||||
return 0;
|
||||
@ -471,7 +471,7 @@ int EventsMngr::getArgInteger(int a)
|
||||
}
|
||||
}
|
||||
|
||||
float EventsMngr::getArgFloat(int a)
|
||||
float EventsMngr::getArgFloat(int a) const
|
||||
{
|
||||
if ( a < 0 || a > m_ParsePos )
|
||||
return 0.0f;
|
||||
|
@ -144,10 +144,10 @@ public:
|
||||
void parseValue(float fValue);
|
||||
void parseValue(const char *sz);
|
||||
void executeEvents();
|
||||
int getArgNum(); //{ return (parsePos+1); }
|
||||
const char* getArgString(int a);
|
||||
int getArgInteger(int a);
|
||||
float getArgFloat(int a);
|
||||
int getArgNum() const; //{ return (parsePos+1); }
|
||||
const char* getArgString(int a) const;
|
||||
int getArgInteger(int a) const;
|
||||
float getArgFloat(int a) const;
|
||||
void clearEvents(void);
|
||||
static int getEventId( const char* msg );
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user