summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-26 12:42:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-26 12:42:21 +0300
commit45f77fd60f71322b288a4497dea5b583b2692613 (patch)
tree5ea3059c1125b3032fcdf6e0d7229a31b39dfc4a /src/gui/widgets
parentd2e744dab8c38ef56184251fe96293fa0f51fb9f (diff)
downloadplus-45f77fd60f71322b288a4497dea5b583b2692613.tar.gz
plus-45f77fd60f71322b288a4497dea5b583b2692613.tar.bz2
plus-45f77fd60f71322b288a4497dea5b583b2692613.tar.xz
plus-45f77fd60f71322b288a4497dea5b583b2692613.zip
Change destructors to virtual in all basic classes.
Also add some missing final to classes.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/chattab.h2
-rw-r--r--src/gui/widgets/container.h2
-rw-r--r--src/gui/widgets/listbox.h2
-rw-r--r--src/gui/widgets/popup.h2
-rw-r--r--src/gui/widgets/setupitem.h4
-rw-r--r--src/gui/widgets/setuptabscroll.h2
-rw-r--r--src/gui/widgets/shortcutcontainer.h2
-rw-r--r--src/gui/widgets/tab.h2
-rw-r--r--src/gui/widgets/textfield.h2
-rw-r--r--src/gui/widgets/window.h2
10 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index 8722f894f..55d8f7769 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -63,7 +63,7 @@ class ChatTab : public Tab
A_DELETE_COPY(ChatTab)
- ~ChatTab();
+ virtual ~ChatTab();
/**
* Adds a line of text to our message list. Parameters:
diff --git a/src/gui/widgets/container.h b/src/gui/widgets/container.h
index 27a20a7e2..fb0dfb15c 100644
--- a/src/gui/widgets/container.h
+++ b/src/gui/widgets/container.h
@@ -46,7 +46,7 @@ class Container : public gcn::Container,
public:
explicit Container(const Widget2 *const widget);
- ~Container();
+ virtual ~Container();
bool safeRemove(gcn::Widget *const widget);
};
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index fe6fb8ba6..909159e11 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -51,7 +51,7 @@ class ListBox : public gcn::ListBox,
A_DELETE_COPY(ListBox)
- ~ListBox();
+ virtual ~ListBox();
/**
* Draws the list box.
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h
index b305ed0c2..7c367586b 100644
--- a/src/gui/widgets/popup.h
+++ b/src/gui/widgets/popup.h
@@ -65,7 +65,7 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Destructor. Deletes all the added widgets.
*/
- ~Popup();
+ virtual ~Popup();
/**
* Sets the window container to be used by new popups.
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h
index 9c5cc11e3..dae7d83d9 100644
--- a/src/gui/widgets/setupitem.h
+++ b/src/gui/widgets/setupitem.h
@@ -59,7 +59,7 @@ class SetupItem : public gcn::ActionListener,
A_DELETE_COPY(SetupItem)
- ~SetupItem();
+ virtual ~SetupItem();
void load();
@@ -429,7 +429,7 @@ class SetupItemSliderList : public SetupItem
public:
A_DELETE_COPY(SetupItemSliderList)
- ~SetupItemSliderList();
+ virtual ~SetupItemSliderList();
void createControls();
diff --git a/src/gui/widgets/setuptabscroll.h b/src/gui/widgets/setuptabscroll.h
index 6e73e7a70..8854e173e 100644
--- a/src/gui/widgets/setuptabscroll.h
+++ b/src/gui/widgets/setuptabscroll.h
@@ -39,7 +39,7 @@ class SetupTabScroll : public SetupTab
A_DELETE_COPY(SetupTabScroll)
- ~SetupTabScroll();
+ virtual ~SetupTabScroll();
void addControl(SetupItem *const widget);
diff --git a/src/gui/widgets/shortcutcontainer.h b/src/gui/widgets/shortcutcontainer.h
index 60c1bb539..45078f870 100644
--- a/src/gui/widgets/shortcutcontainer.h
+++ b/src/gui/widgets/shortcutcontainer.h
@@ -48,7 +48,7 @@ class ShortcutContainer : public gcn::Widget,
/**
* Destructor.
*/
- ~ShortcutContainer();
+ virtual ~ShortcutContainer();
/**
* Draws the shortcuts
diff --git a/src/gui/widgets/tab.h b/src/gui/widgets/tab.h
index ca94cc8c8..ecd0ae494 100644
--- a/src/gui/widgets/tab.h
+++ b/src/gui/widgets/tab.h
@@ -49,7 +49,7 @@ class Tab : public gcn::BasicContainer,
A_DELETE_COPY(Tab)
- ~Tab();
+ virtual ~Tab();
/**
* Update the alpha value to the graphic components.
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 1261e256d..eaecf41e7 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -54,7 +54,7 @@ class TextField : public gcn::TextField,
A_DELETE_COPY(TextField)
- ~TextField();
+ virtual ~TextField();
/**
* Draws the text field.
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index 46cc2d831..40270673a 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -70,7 +70,7 @@ class Window : public gcn::Window,
/**
* Destructor. Deletes all the added widgets.
*/
- ~Window();
+ virtual ~Window();
/**
* Sets the window container to be used by new windows.