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/svl | |
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/svl')
-rw-r--r-- | include/svl/style.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/svl/style.hxx b/include/svl/style.hxx index dc9c99df55fe..a4715118b9f7 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -339,6 +339,7 @@ public: class SVL_DLLPUBLIC SfxUnoStyleSheet : public ::cppu::ImplInheritanceHelper2< SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel > { public: + SfxUnoStyleSheet() = delete; SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetBasePool& _rPool, SfxStyleFamily _eFamily, sal_uInt16 _nMaske ); static SfxUnoStyleSheet* getUnoStyleSheet( const css::uno::Reference< css::style::XStyle >& xStyle ); @@ -347,8 +348,6 @@ public: virtual ::sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< ::sal_Int8 >& aIdentifier ) throw (css::uno::RuntimeException, std::exception) override; private: - SfxUnoStyleSheet(); // not implemented - static const css::uno::Sequence< ::sal_Int8 >& getIdentifier(); }; |