diff options
author | David Tardon <dtardon@redhat.com> | 2014-12-03 22:01:57 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-12-04 23:10:24 +0100 |
commit | 9638e6207c7fc48712b1b238177462c00f5011e8 (patch) | |
tree | 5b4f30ee6fc163e52ab0cb5bf179d6f55ff261bd /sc | |
parent | 34e456a2b030eb2e80ae5ca87e81896cc8240bff (diff) |
ooo#93212 avoid slicing during construction of SdrPage
Also hide copy ctor and assignment operator of all derived classes, to
ensure that Clone() is the only method to make copies of them.
Change-Id: Icb3b50c63b086abe8c9add32e3041fe19692d20b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/drawpage.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/drawpage.hxx b/sc/inc/drawpage.hxx index c11d4ccf05dd..6f7b68ec7c66 100644 --- a/sc/inc/drawpage.hxx +++ b/sc/inc/drawpage.hxx @@ -26,6 +26,9 @@ class ScDrawLayer; class ScDrawPage: public FmFormPage { + ScDrawPage(const ScDrawPage&) SAL_DELETED_FUNCTION; + ScDrawPage& operator=(const ScDrawPage&) SAL_DELETED_FUNCTION; + public: ScDrawPage(ScDrawLayer& rNewModel, bool bMasterPage = false); virtual ~ScDrawPage(); |