forked from bartvdbraak/blender
cleanup compiler warnings for
missing virtual destructors out of order initializers
This commit is contained in:
parent
7f2d1f651c
commit
03edb15afd
@ -77,3 +77,5 @@ void GHOST_Buttons::clear()
|
||||
m_ButtonMiddle = false;
|
||||
m_ButtonRight = false;
|
||||
}
|
||||
|
||||
GHOST_Buttons::~GHOST_Buttons() {}
|
||||
|
@ -51,6 +51,8 @@ struct GHOST_Buttons {
|
||||
*/
|
||||
GHOST_Buttons();
|
||||
|
||||
virtual ~GHOST_Buttons();
|
||||
|
||||
/**
|
||||
* Returns the state of a single button.
|
||||
* @param mask. Key button to return.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user