diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-29 15:54:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-03 20:12:22 +0000 |
commit | 12c222a3ae3d65b0c088e42bec426ec0e5ca5b75 (patch) | |
tree | a54a816a72f05840bbff1d6da6b2e79625faf10c /include/editeng/editobj.hxx | |
parent | acdc855f0b9b97e23ea5282f5a31e28dbcf2b311 (diff) |
C++11: disable ctors with delete in include/
replace the old declare and don't implement pattern
with C++11 delete keyword
no need to hide this design choice behind access restrictions
Change-Id: I7e8430a07189aa48514a4613c3a8c2950b230f49
Reviewed-on: https://gerrit.libreoffice.org/24495
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/editeng/editobj.hxx')
-rw-r--r-- | include/editeng/editobj.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx index 2206cc9ded85..4331b06736ce 100644 --- a/include/editeng/editobj.hxx +++ b/include/editeng/editobj.hxx @@ -65,18 +65,16 @@ class EDITENG_DLLPUBLIC EditTextObject : public SfxItemPoolUser std::unique_ptr<EditTextObjectImpl> mpImpl; - EditTextObject& operator=( const EditTextObject& ) = delete; - - EditTextObject(); // disabled - EditTextObject( SfxItemPool* pPool ); void StoreData( SvStream& rStrm ) const; void CreateData( SvStream& rStrm ); public: + EditTextObject() = delete; EditTextObject( const EditTextObject& r ); virtual ~EditTextObject(); + EditTextObject& operator=( const EditTextObject& ) = delete; /** * Set paragraph strings to the shared string pool. |