Skip to content

Commit 168586f

Browse files
gui: fix -Werror=unused-parameter in HeadlessViewer defaults
Signed-off-by: Jorge Ferreira <jorge.ferreira@precisioninno.com>
1 parent 45f0530 commit 168586f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/gui/include/gui/gui.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,16 +747,20 @@ class HeadlessViewer
747747
// assume "everything visible, nothing selectable" so headless renderers draw
748748
// by default without a Qt widget. Viewers that track their own visibility
749749
// model (e.g. the web viewer) may override these.
750-
virtual bool checkDisplayControlVisible(const std::string& name)
750+
virtual bool checkDisplayControlVisible(const std::string& /* name */)
751751
{
752752
return true;
753753
}
754-
virtual bool checkDisplayControlSelectable(const std::string& name)
754+
virtual bool checkDisplayControlSelectable(const std::string& /* name */)
755755
{
756756
return false;
757757
}
758-
virtual void setDisplayControlVisible(const std::string& name, bool value) {}
759-
virtual void setDisplayControlSelectable(const std::string& name, bool value)
758+
virtual void setDisplayControlVisible(const std::string& /* name */,
759+
bool /* value */)
760+
{
761+
}
762+
virtual void setDisplayControlSelectable(const std::string& /* name */,
763+
bool /* value */)
760764
{
761765
}
762766
};

0 commit comments

Comments
 (0)