fix -Wextra in FreeCADGui
This commit is contained in:
@@ -35,7 +35,7 @@ void SoFCInteractiveElement::initClass(void)
|
||||
SO_ENABLE(SoGLRenderAction, SoFCInteractiveElement);
|
||||
}
|
||||
|
||||
void SoFCInteractiveElement::init(SoState * state)
|
||||
void SoFCInteractiveElement::init(SoState * /*state*/)
|
||||
{
|
||||
this->interactiveMode = false;
|
||||
}
|
||||
@@ -100,26 +100,26 @@ void SoGLWidgetElement::get(SoState * state, QGLWidget *& window)
|
||||
(SoElement::getConstElement(state, classStackIndex));
|
||||
window = that->window;
|
||||
}
|
||||
|
||||
void SoGLWidgetElement::push(SoState * state)
|
||||
{
|
||||
inherited::push(state);
|
||||
}
|
||||
|
||||
void SoGLWidgetElement::pop(SoState * state, const SoElement * prevTopElement)
|
||||
{
|
||||
inherited::pop(state, prevTopElement);
|
||||
}
|
||||
|
||||
SbBool SoGLWidgetElement::matches(const SoElement * element) const
|
||||
{
|
||||
|
||||
void SoGLWidgetElement::push(SoState * state)
|
||||
{
|
||||
inherited::push(state);
|
||||
}
|
||||
|
||||
void SoGLWidgetElement::pop(SoState * state, const SoElement * prevTopElement)
|
||||
{
|
||||
inherited::pop(state, prevTopElement);
|
||||
}
|
||||
|
||||
SbBool SoGLWidgetElement::matches(const SoElement * /*element*/) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
SoElement * SoGLWidgetElement::copyMatchInfo(void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
SoElement * SoGLWidgetElement::copyMatchInfo(void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// ---------------------------------
|
||||
|
||||
@@ -155,62 +155,62 @@ void SoGLRenderActionElement::get(SoState * state, SoGLRenderAction * & action)
|
||||
(SoElement::getConstElement(state, classStackIndex));
|
||||
action = that->glRenderAction;
|
||||
}
|
||||
|
||||
void SoGLRenderActionElement::push(SoState * state)
|
||||
{
|
||||
inherited::push(state);
|
||||
}
|
||||
|
||||
void SoGLRenderActionElement::pop(SoState * state, const SoElement * prevTopElement)
|
||||
{
|
||||
inherited::pop(state, prevTopElement);
|
||||
}
|
||||
|
||||
SbBool SoGLRenderActionElement::matches(const SoElement * element) const
|
||||
{
|
||||
|
||||
void SoGLRenderActionElement::push(SoState * state)
|
||||
{
|
||||
inherited::push(state);
|
||||
}
|
||||
|
||||
void SoGLRenderActionElement::pop(SoState * state, const SoElement * prevTopElement)
|
||||
{
|
||||
inherited::pop(state, prevTopElement);
|
||||
}
|
||||
|
||||
SbBool SoGLRenderActionElement::matches(const SoElement * /*element*/) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
SoElement * SoGLRenderActionElement::copyMatchInfo(void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
SoElement * SoGLRenderActionElement::copyMatchInfo(void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// ---------------------------------
|
||||
|
||||
SO_NODE_SOURCE(SoGLWidgetNode);
|
||||
|
||||
/*!
|
||||
Constructor.
|
||||
*/
|
||||
SoGLWidgetNode::SoGLWidgetNode(void) : window(0)
|
||||
{
|
||||
SO_NODE_CONSTRUCTOR(SoGLWidgetNode);
|
||||
}
|
||||
|
||||
/*!
|
||||
Destructor.
|
||||
*/
|
||||
SoGLWidgetNode::~SoGLWidgetNode()
|
||||
{
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::initClass(void)
|
||||
{
|
||||
SO_NODE_INIT_CLASS(SoGLWidgetNode, SoNode, "Node");
|
||||
|
||||
SO_ENABLE(SoGLRenderAction, SoGLWidgetElement);
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::doAction(SoAction * action)
|
||||
{
|
||||
SoGLWidgetElement::set(action->getState(), this->window);
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::GLRender(SoGLRenderAction * action)
|
||||
{
|
||||
SoGLWidgetNode::doAction(action);
|
||||
}
|
||||
|
||||
SO_NODE_SOURCE(SoGLWidgetNode);
|
||||
|
||||
/*!
|
||||
Constructor.
|
||||
*/
|
||||
SoGLWidgetNode::SoGLWidgetNode(void) : window(0)
|
||||
{
|
||||
SO_NODE_CONSTRUCTOR(SoGLWidgetNode);
|
||||
}
|
||||
|
||||
/*!
|
||||
Destructor.
|
||||
*/
|
||||
SoGLWidgetNode::~SoGLWidgetNode()
|
||||
{
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::initClass(void)
|
||||
{
|
||||
SO_NODE_INIT_CLASS(SoGLWidgetNode, SoNode, "Node");
|
||||
|
||||
SO_ENABLE(SoGLRenderAction, SoGLWidgetElement);
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::doAction(SoAction * action)
|
||||
{
|
||||
SoGLWidgetElement::set(action->getState(), this->window);
|
||||
}
|
||||
|
||||
// Doc from superclass.
|
||||
void SoGLWidgetNode::GLRender(SoGLRenderAction * action)
|
||||
{
|
||||
SoGLWidgetNode::doAction(action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user