Fixed unused parameter warning.

This commit is contained in:
Robert Osfield 2016-06-08 11:02:51 +01:00
parent ae98593403
commit fff4b4ae65
3 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ class CameraPacket {
void writeEventQueue(osgViewer::Viewer& viewer); void writeEventQueue(osgViewer::Viewer& viewer);
void setMasterKilled(const bool flag) { _masterKilled = flag; } void setMasterKilled(const bool flag) { _masterKilled = flag; }
const bool getMasterKilled() const { return _masterKilled; } bool getMasterKilled() const { return _masterKilled; }
unsigned int _byte_order; unsigned int _byte_order;
bool _masterKilled; bool _masterKilled;

View File

@ -86,7 +86,7 @@ bool SpellChecker::isCorrect(const std::string& word) const
return true; return true;
} }
SpellChecker::WordList SpellChecker::suggest(const std::string& word) const SpellChecker::WordList SpellChecker::suggest(const std::string& /*word*/) const
{ {
return WordList(); return WordList();
} }

View File

@ -137,7 +137,7 @@ class ForwardToDeviceEventHandler : public osgGA::GUIEventHandler {
public: public:
ForwardToDeviceEventHandler(osgGA::Device* device, bool format_mouse_events) : osgGA::GUIEventHandler(), _device(device), _forwardMouseEvents(format_mouse_events) {} ForwardToDeviceEventHandler(osgGA::Device* device, bool format_mouse_events) : osgGA::GUIEventHandler(), _device(device), _forwardMouseEvents(format_mouse_events) {}
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *) virtual bool handle (const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& /*aa*/, osg::Object *, osg::NodeVisitor *)
{ {
switch (ea.getEventType()) switch (ea.getEventType())
{ {
@ -180,7 +180,7 @@ class DumpEventHandler : public osgGA::GUIEventHandler {
public: public:
DumpEventHandler() : osgGA::GUIEventHandler() {} DumpEventHandler() : osgGA::GUIEventHandler() {}
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *) virtual bool handle (const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& /*aa*/, osg::Object *, osg::NodeVisitor *)
{ {
switch (ea.getEventType()) switch (ea.getEventType())
{ {