Skip to content

Commit

Permalink
Add virtual destructors for WindowManagerInterface and ViewportProjec…
Browse files Browse the repository at this point in the history
…tionFinder (#356)

To fix the following warnings (converted to errors by compile options):
error: destructor called on non-final 'MockProjectionFinder' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
error: destructor called on non-final 'MockWindowManagerInterface' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
  • Loading branch information
kartikmohta authored and clalancette committed Oct 8, 2018
1 parent e5a0fc8 commit 9eb7964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rviz_common/include/rviz_common/window_manager_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class PanelDockWidget;
class WindowManagerInterface
{
public:
virtual ~WindowManagerInterface() = default;

/// Return the parent QWidget.
virtual
QWidget *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class RVIZ_RENDERING_PUBLIC ViewportProjectionFinder
{
public:
ViewportProjectionFinder() = default;
virtual ~ViewportProjectionFinder() = default;

virtual std::pair<bool, Ogre::Vector3> getViewportPointProjectionOnXYPlane(
RenderWindow * render_window, int x, int y);
Expand Down

0 comments on commit 9eb7964

Please sign in to comment.