From 12c222a3ae3d65b0c088e42bec426ec0e5ca5b75 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Fri, 29 Apr 2016 15:54:09 +0200 Subject: 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 Reviewed-by: Michael Stahl --- include/svl/style.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/svl') 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(); }; -- cgit