remove warning supression and fix missing virtual destructor

This commit is contained in:
AdenKoperczak 2024-09-21 13:01:56 -04:00
parent c5d004aa48
commit 3b5323cea0
5 changed files with 2 additions and 29 deletions

View file

@ -22,7 +22,7 @@ class DrawItem
{
public:
explicit DrawItem(OpenGLFunctions& gl);
~DrawItem();
virtual ~DrawItem();
DrawItem(const DrawItem&) = delete;
DrawItem& operator=(const DrawItem&) = delete;

View file

@ -1,16 +1,7 @@
#pragma once
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
#endif
#include <QOpenGLFunctions_3_3_Core>
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#define SCWX_GL_CHECK_ERROR() \
{ \
GLenum err; \

View file

@ -1,16 +1,7 @@
#pragma once
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
#endif
#include <scwx/awips/phenomenon.hpp>
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#include <scwx/qt/map/draw_layer.hpp>
#include <scwx/qt/types/text_event_key.hpp>

View file

@ -18,7 +18,7 @@ class SettingsCategory
{
public:
explicit SettingsCategory(const std::string& name);
~SettingsCategory();
virtual ~SettingsCategory();
SettingsCategory(const SettingsCategory&) = delete;
SettingsCategory& operator=(const SettingsCategory&) = delete;

View file

@ -1,17 +1,8 @@
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
#endif
#include <scwx/qt/settings/text_settings.hpp>
#include <scwx/qt/types/text_types.hpp>
#include <boost/algorithm/string.hpp>
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
namespace scwx
{
namespace qt