cleanup compiler warnings for

missing virtual destructors
  out of order initializers
This commit is contained in:
Stephen Swaney 2007-03-20 04:19:30 +00:00
parent 7f2d1f651c
commit 03edb15afd
5 changed files with 13 additions and 5 deletions

@ -77,3 +77,5 @@ void GHOST_Buttons::clear()
m_ButtonMiddle = false;
m_ButtonRight = false;
}
GHOST_Buttons::~GHOST_Buttons() {}

@ -50,6 +50,8 @@ struct GHOST_Buttons {
* Constructor.
*/
GHOST_Buttons();
virtual ~GHOST_Buttons();
/**
* Returns the state of a single button.

@ -49,6 +49,8 @@ GHOST_ModifierKeys::GHOST_ModifierKeys()
clear();
}
GHOST_ModifierKeys::~GHOST_ModifierKeys() {}
GHOST_TKey GHOST_ModifierKeys::getModifierKeyCode(GHOST_TModifierKeyMask mask)
{

@ -51,6 +51,8 @@ struct GHOST_ModifierKeys
*/
GHOST_ModifierKeys();
virtual ~GHOST_ModifierKeys();
/**
* Returns the modifier key's key code from a modifier key mask.
* @param mask The mask of the modifier key.

@ -65,11 +65,11 @@ GHOST_WindowX11(
const bool stereoVisual
) :
GHOST_Window(title,left,top,width,height,state,type,stereoVisual),
m_display(display),
m_valid_setup (false),
m_system (system),
m_invalid_window(false),
m_context(NULL),
m_display(display),
m_system (system),
m_valid_setup (false),
m_invalid_window(false),
m_empty_cursor(None),
m_custom_cursor(None)
{
@ -476,7 +476,7 @@ setState(
){
//TODO
if (state == getState()) {
if (state == (int)getState()) {
return GHOST_kSuccess;
} else {
return GHOST_kFailure;