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>
This commit is contained in:
committed by
Michael Stahl
parent
acdc855f0b
commit
12c222a3ae
@@ -38,15 +38,12 @@ namespace comphelper
|
||||
public:
|
||||
typedef sal_uInt32 TClientId;
|
||||
|
||||
protected:
|
||||
AccessibleEventNotifier( ); // never implemented
|
||||
~AccessibleEventNotifier( ); // never implemented
|
||||
|
||||
private:
|
||||
public:
|
||||
AccessibleEventNotifier() = delete;
|
||||
~AccessibleEventNotifier() = delete;
|
||||
AccessibleEventNotifier( const AccessibleEventNotifier& ) = delete;
|
||||
AccessibleEventNotifier& operator=( const AccessibleEventNotifier& ) = delete;
|
||||
|
||||
public:
|
||||
/** registers a client of this class, means a broadcaster of AccessibleEvents
|
||||
|
||||
<p>No precaution is taken to care for disposal of this component. When the component
|
||||
|
@@ -225,9 +225,9 @@ namespace comphelper
|
||||
protected:
|
||||
virtual ~OAccessibleContextWrapperHelper( );
|
||||
|
||||
OAccessibleContextWrapperHelper( ); // never implemented
|
||||
OAccessibleContextWrapperHelper( const OAccessibleContextWrapperHelper& ); // never implemented
|
||||
OAccessibleContextWrapperHelper& operator=( const OAccessibleContextWrapperHelper& ); // never implemented
|
||||
OAccessibleContextWrapperHelper() = delete;
|
||||
OAccessibleContextWrapperHelper(const OAccessibleContextWrapperHelper&) = delete;
|
||||
OAccessibleContextWrapperHelper& operator=(const OAccessibleContextWrapperHelper&) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -79,6 +79,7 @@ namespace param
|
||||
::connectivity::ORowSetValue& Value() { return m_aValue; }
|
||||
|
||||
public:
|
||||
ParameterWrapper() = delete;
|
||||
ParameterWrapper(
|
||||
const css::uno::Reference< css::beans::XPropertySet >& _rxColumn
|
||||
);
|
||||
@@ -114,9 +115,6 @@ namespace param
|
||||
|
||||
private:
|
||||
OUString impl_getPseudoAggregatePropertyName( sal_Int32 _nHandle ) const;
|
||||
|
||||
private:
|
||||
ParameterWrapper(); // not implemented
|
||||
};
|
||||
|
||||
|
||||
|
@@ -76,6 +76,7 @@ namespace dbaui
|
||||
virtual void impl_onModifyChanged();
|
||||
|
||||
public:
|
||||
DBSubComponentController() = delete;
|
||||
|
||||
bool isReadOnly() const;
|
||||
bool isEditable() const;
|
||||
@@ -188,9 +189,6 @@ namespace dbaui
|
||||
|
||||
protected:
|
||||
sal_Int32 getCurrentStartNumber() const;
|
||||
|
||||
private:
|
||||
DBSubComponentController(); // never implemented
|
||||
};
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -27,10 +27,10 @@ class EDITENG_DLLPUBLIC FieldUpdater
|
||||
{
|
||||
std::unique_ptr<FieldUpdaterImpl> mpImpl;
|
||||
|
||||
FieldUpdater(); // disabled
|
||||
public:
|
||||
FieldUpdater(EditTextObject& rObj);
|
||||
FieldUpdater(const FieldUpdater& r);
|
||||
FieldUpdater() = delete;
|
||||
~FieldUpdater();
|
||||
|
||||
/**
|
||||
|
@@ -107,10 +107,11 @@ protected:
|
||||
|
||||
SAL_DLLPRIVATE void RemoveChildFrame_Impl( SfxFrame* );
|
||||
|
||||
SfxFrame( ); // not implemented
|
||||
SAL_DLLPRIVATE SfxFrame( vcl::Window& i_rContainerWindow );
|
||||
|
||||
public:
|
||||
SfxFrame() = delete;
|
||||
|
||||
static SfxFrame* Create( const css::uno::Reference< css::frame::XFrame >& xFrame );
|
||||
static css::uno::Reference< css::frame::XFrame >
|
||||
CreateBlankFrame();
|
||||
|
@@ -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();
|
||||
};
|
||||
|
||||
|
@@ -190,11 +190,8 @@ public:
|
||||
|
||||
SVX_DLLPUBLIC static ExpressionNodeSharedPtr parseFunction( const OUString& rFunction, const EnhancedCustomShape2d& rCustoShape );
|
||||
|
||||
private:
|
||||
// disabled constructor/destructor, since this is
|
||||
// supposed to be a singleton
|
||||
FunctionParser();
|
||||
|
||||
// this is a singleton
|
||||
FunctionParser() = delete;
|
||||
FunctionParser(const FunctionParser&) = delete;
|
||||
FunctionParser& operator=( const FunctionParser& ) = delete;
|
||||
};
|
||||
|
@@ -45,11 +45,10 @@ private:
|
||||
bool bModified;
|
||||
bool bThemeNameFromResource;
|
||||
|
||||
GalleryThemeEntry();
|
||||
static INetURLObject ImplGetURLIgnoreCase( const INetURLObject& rURL );
|
||||
|
||||
public:
|
||||
|
||||
GalleryThemeEntry() = delete;
|
||||
GalleryThemeEntry( bool bCreateUniqueURL,
|
||||
const INetURLObject& rBaseURL,
|
||||
const OUString& rName,
|
||||
|
Reference in New Issue
Block a user