summaryrefslogtreecommitdiff
path: root/chart2/source/controller/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-14 13:27:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-03-14 13:32:02 +0100
commit6e67c03dc0225fc66343546b14e902b9d238b1a3 (patch)
tree6e078783d65e280a721b4e46f0ae0ca6b950f121 /chart2/source/controller/inc
parentfe4be5047988782f3143a1af505c5eecb3f2af5a (diff)
Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed.
Diffstat (limited to 'chart2/source/controller/inc')
-rw-r--r--chart2/source/controller/inc/DrawViewWrapper.hxx3
-rw-r--r--chart2/source/controller/inc/RangeSelectionListener.hxx3
-rw-r--r--chart2/source/controller/inc/TabPageNotifiable.hxx3
3 files changed, 9 insertions, 0 deletions
diff --git a/chart2/source/controller/inc/DrawViewWrapper.hxx b/chart2/source/controller/inc/DrawViewWrapper.hxx
index fda4898f274c..fb1ce41ee9ff 100644
--- a/chart2/source/controller/inc/DrawViewWrapper.hxx
+++ b/chart2/source/controller/inc/DrawViewWrapper.hxx
@@ -49,6 +49,9 @@ class MarkHandleProvider
public:
virtual bool getMarkHandles( SdrHdlList& rHdlList ) =0;
virtual bool getFrameDragSingles() =0;
+
+protected:
+ ~MarkHandleProvider() {}
};
class DrawViewWrapper : public E3dView
diff --git a/chart2/source/controller/inc/RangeSelectionListener.hxx b/chart2/source/controller/inc/RangeSelectionListener.hxx
index d0a4f97bfbad..70886493d23e 100644
--- a/chart2/source/controller/inc/RangeSelectionListener.hxx
+++ b/chart2/source/controller/inc/RangeSelectionListener.hxx
@@ -41,6 +41,9 @@ class RangeSelectionListenerParent
public:
virtual void listeningFinished( const ::rtl::OUString & rNewRange ) = 0;
virtual void disposingRangeSelection() = 0;
+
+protected:
+ ~RangeSelectionListenerParent() {}
};
// ----------------------------------------
diff --git a/chart2/source/controller/inc/TabPageNotifiable.hxx b/chart2/source/controller/inc/TabPageNotifiable.hxx
index e34de6eee76a..b3771dbc1848 100644
--- a/chart2/source/controller/inc/TabPageNotifiable.hxx
+++ b/chart2/source/controller/inc/TabPageNotifiable.hxx
@@ -44,6 +44,9 @@ class TabPageNotifiable
public:
virtual void setInvalidPage( TabPage * pTabPage ) = 0;
virtual void setValidPage( TabPage * pTabPage ) = 0;
+
+protected:
+ ~TabPageNotifiable() {}
};
} // namespace chart