Kaydet (Commit) 5516df0a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:deletedspecial

Change-Id: I53a088b74b95230aa3842bcac0bb1fd09e39cc12
üst f3dbc6f9
...@@ -43,21 +43,17 @@ namespace utl ...@@ -43,21 +43,17 @@ namespace utl
/** a class which allows non-UNO components to observe the desktop (aka application) /** a class which allows non-UNO components to observe the desktop (aka application)
for it's shutdown for it's shutdown
*/ */
class UNOTOOLS_DLLPUBLIC DesktopTerminationObserver namespace DesktopTerminationObserver
{ {
public:
/** registers a listener which should be notified when the desktop terminates /** registers a listener which should be notified when the desktop terminates
(which means the application is shutting down) (which means the application is shutting down)
*/ */
static void registerTerminationListener( ITerminationListener* _pListener ); UNOTOOLS_DLLPUBLIC void registerTerminationListener( ITerminationListener* _pListener );
/** revokes a termination listener /** revokes a termination listener
*/ */
static void revokeTerminationListener( ITerminationListener* _pListener ); UNOTOOLS_DLLPUBLIC void revokeTerminationListener( ITerminationListener* _pListener );
}
private:
DesktopTerminationObserver(); // never implemented, only static methods
};
} // namespace utl } // namespace utl
......
...@@ -115,10 +115,8 @@ class DigitGroupingIterator ...@@ -115,10 +115,8 @@ class DigitGroupingIterator
setDigits(); setDigits();
} }
// not implemented, prevent usage DigitGroupingIterator( const DigitGroupingIterator & ) SAL_DELETED_FUNCTION;
DigitGroupingIterator(); DigitGroupingIterator & operator=( const DigitGroupingIterator & ) SAL_DELETED_FUNCTION;
DigitGroupingIterator( const DigitGroupingIterator & );
DigitGroupingIterator & operator=( const DigitGroupingIterator & );
public: public:
......
...@@ -36,8 +36,8 @@ namespace utl ...@@ -36,8 +36,8 @@ namespace utl
friend class OEventListenerImpl; friend class OEventListenerImpl;
private: private:
UNOTOOLS_DLLPRIVATE OEventListenerAdapter( const OEventListenerAdapter& _rSource ); // never implemented OEventListenerAdapter( const OEventListenerAdapter& _rSource ) SAL_DELETED_FUNCTION;
UNOTOOLS_DLLPRIVATE const OEventListenerAdapter& operator=( const OEventListenerAdapter& _rSource ); // never implemented const OEventListenerAdapter& operator=( const OEventListenerAdapter& _rSource ) SAL_DELETED_FUNCTION;
protected: protected:
OEventListenerAdapterImpl* m_pImpl; OEventListenerAdapterImpl* m_pImpl;
......
...@@ -154,9 +154,8 @@ class UNOTOOLS_DLLPUBLIC SvtLinguConfig: public utl::detail::Options ...@@ -154,9 +154,8 @@ class UNOTOOLS_DLLPUBLIC SvtLinguConfig: public utl::detail::Options
OUString GetVendorImageUrl_Impl( const OUString &rServiceImplName, const OUString &rImageName ) const; OUString GetVendorImageUrl_Impl( const OUString &rServiceImplName, const OUString &rImageName ) const;
// disallow copy-constructor and assignment-operator for now SvtLinguConfig( const SvtLinguConfig & ) SAL_DELETED_FUNCTION;
SvtLinguConfig( const SvtLinguConfig & ); SvtLinguConfig & operator = ( const SvtLinguConfig & ) SAL_DELETED_FUNCTION;
SvtLinguConfig & operator = ( const SvtLinguConfig & );
public: public:
SvtLinguConfig(); SvtLinguConfig();
......
...@@ -31,9 +31,8 @@ namespace com { namespace sun { namespace star { ...@@ -31,9 +31,8 @@ namespace com { namespace sun { namespace star {
class UNOTOOLS_DLLPUBLIC NativeNumberWrapper class UNOTOOLS_DLLPUBLIC NativeNumberWrapper
{ {
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNativeNumberSupplier > xNNS; ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNativeNumberSupplier > xNNS;
// not implemented, prevent usage NativeNumberWrapper( const NativeNumberWrapper& ) SAL_DELETED_FUNCTION;
NativeNumberWrapper( const NativeNumberWrapper& ); NativeNumberWrapper& operator=( const NativeNumberWrapper& ) SAL_DELETED_FUNCTION;
NativeNumberWrapper& operator=( const NativeNumberWrapper& );
public: public:
NativeNumberWrapper( NativeNumberWrapper(
......
...@@ -34,9 +34,8 @@ class UNOTOOLS_DLLPUBLIC NumberFormatCodeWrapper ...@@ -34,9 +34,8 @@ class UNOTOOLS_DLLPUBLIC NumberFormatCodeWrapper
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC; ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC;
::com::sun::star::lang::Locale aLocale; ::com::sun::star::lang::Locale aLocale;
// not implemented, prevent usage NumberFormatCodeWrapper( const NumberFormatCodeWrapper& ) SAL_DELETED_FUNCTION;
NumberFormatCodeWrapper( const NumberFormatCodeWrapper& ); NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& ) SAL_DELETED_FUNCTION;
NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& );
public: public:
NumberFormatCodeWrapper( NumberFormatCodeWrapper(
......
...@@ -81,8 +81,8 @@ public: ...@@ -81,8 +81,8 @@ public:
virtual ~Options() = 0; virtual ~Options() = 0;
private: private:
UNOTOOLS_DLLPRIVATE Options(Options &); // not defined Options(Options &) SAL_DELETED_FUNCTION;
UNOTOOLS_DLLPRIVATE void operator =(Options &); // not defined void operator =(Options &) SAL_DELETED_FUNCTION;
protected: protected:
virtual void ConfigurationChanged( ::utl::ConfigurationBroadcaster* p, sal_uInt32 nHint=0 ) SAL_OVERRIDE; virtual void ConfigurationChanged( ::utl::ConfigurationBroadcaster* p, sal_uInt32 nHint=0 ) SAL_OVERRIDE;
......
...@@ -28,11 +28,8 @@ class UNOTOOLS_DLLPUBLIC SvtSearchOptions ...@@ -28,11 +28,8 @@ class UNOTOOLS_DLLPUBLIC SvtSearchOptions
{ {
SvtSearchOptions_Impl *pImpl; SvtSearchOptions_Impl *pImpl;
// disallow copy-constructor and assignment-operator for now SvtSearchOptions( const SvtSearchOptions & ) SAL_DELETED_FUNCTION;
SvtSearchOptions( const SvtSearchOptions & ); SvtSearchOptions & operator = ( const SvtSearchOptions & ) SAL_DELETED_FUNCTION;
SvtSearchOptions & operator = ( const SvtSearchOptions & );
protected:
public: public:
SvtSearchOptions(); SvtSearchOptions();
......
...@@ -64,9 +64,8 @@ namespace utl ...@@ -64,9 +64,8 @@ namespace utl
~DisposableComponent(); ~DisposableComponent();
private: private:
DisposableComponent(); // never implemented DisposableComponent( const DisposableComponent& ) SAL_DELETED_FUNCTION;
DisposableComponent( const DisposableComponent& ); // never implemented DisposableComponent& operator=( const DisposableComponent& ) SAL_DELETED_FUNCTION;
DisposableComponent& operator=( const DisposableComponent& ); // never implemented
}; };
//= CloseableComponent //= CloseableComponent
...@@ -105,9 +104,8 @@ namespace utl ...@@ -105,9 +104,8 @@ namespace utl
~CloseableComponent(); ~CloseableComponent();
private: private:
CloseableComponent(); // never implemented CloseableComponent( const CloseableComponent& ) SAL_DELETED_FUNCTION;
CloseableComponent( const CloseableComponent& ); // never implemented CloseableComponent& operator=( const CloseableComponent& ) SAL_DELETED_FUNCTION;
CloseableComponent& operator=( const CloseableComponent& ); // never implemented
}; };
//= SharedUNOComponent //= SharedUNOComponent
......
...@@ -50,11 +50,8 @@ class UNOTOOLS_DLLPUBLIC TempFile ...@@ -50,11 +50,8 @@ class UNOTOOLS_DLLPUBLIC TempFile
bool bIsDirectory; bool bIsDirectory;
bool bKillingFileEnabled; bool bKillingFileEnabled;
// prevent copy c'tor TempFile( const TempFile& ) SAL_DELETED_FUNCTION;
TempFile( const TempFile& ); TempFile& operator=(const TempFile&) SAL_DELETED_FUNCTION;
TempFile& operator=(const TempFile&);
protected:
public: public:
/** /**
......
...@@ -42,9 +42,8 @@ class UNOTOOLS_DLLPUBLIC TransliterationWrapper ...@@ -42,9 +42,8 @@ class UNOTOOLS_DLLPUBLIC TransliterationWrapper
sal_uInt32 nType; sal_uInt32 nType;
mutable bool bFirstCall; mutable bool bFirstCall;
// not implemented, prevent usage TransliterationWrapper( const TransliterationWrapper& ) SAL_DELETED_FUNCTION;
TransliterationWrapper( const TransliterationWrapper& ); TransliterationWrapper& operator=( const TransliterationWrapper& ) SAL_DELETED_FUNCTION;
TransliterationWrapper& operator=( const TransliterationWrapper& );
void loadModuleImpl() const; void loadModuleImpl() const;
void setLanguageLocaleImpl( sal_uInt16 nLang ); void setLanguageLocaleImpl( sal_uInt16 nLang );
......
...@@ -135,7 +135,7 @@ public: ...@@ -135,7 +135,7 @@ public:
static ::com::sun::star::uno::Reference < com::sun::star::lang::XSingleComponentFactory > createServiceFactory_Static(); static ::com::sun::star::uno::Reference < com::sun::star::lang::XSingleComponentFactory > createServiceFactory_Static();
private: private:
OTempFileService( OTempFileService & ); OTempFileService( OTempFileService & ) SAL_DELETED_FUNCTION;
virtual ~OTempFileService (); virtual ~OTempFileService ();
}; };
......
...@@ -1515,7 +1515,7 @@ UcbLockBytesRef UcbLockBytes::CreateInputLockBytes( const Reference< XInputStrea ...@@ -1515,7 +1515,7 @@ UcbLockBytesRef UcbLockBytes::CreateInputLockBytes( const Reference< XInputStrea
if( !xInputStream.is() ) if( !xInputStream.is() )
return NULL; return NULL;
UcbLockBytesRef xLockBytes = new UcbLockBytes(); UcbLockBytesRef xLockBytes = new UcbLockBytes(nullptr);
xLockBytes->setDontClose_Impl(); xLockBytes->setDontClose_Impl();
xLockBytes->setInputStream_Impl( xInputStream ); xLockBytes->setInputStream_Impl( xInputStream );
xLockBytes->terminate_Impl(); xLockBytes->terminate_Impl();
...@@ -1527,7 +1527,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference< XStream >& xStre ...@@ -1527,7 +1527,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference< XStream >& xStre
if( !xStream.is() ) if( !xStream.is() )
return NULL; return NULL;
UcbLockBytesRef xLockBytes = new UcbLockBytes(); UcbLockBytesRef xLockBytes = new UcbLockBytes(nullptr);
xLockBytes->setDontClose_Impl(); xLockBytes->setDontClose_Impl();
xLockBytes->setStream_Impl( xStream ); xLockBytes->setStream_Impl( xStream );
xLockBytes->terminate_Impl(); xLockBytes->terminate_Impl();
......
...@@ -105,7 +105,7 @@ class UcbLockBytes : public virtual SvLockBytes ...@@ -105,7 +105,7 @@ class UcbLockBytes : public virtual SvLockBytes
DECL_LINK( DataAvailHdl, void * ); DECL_LINK( DataAvailHdl, void * );
UcbLockBytes( UcbLockBytesHandler* pHandler=NULL ); UcbLockBytes( UcbLockBytesHandler* pHandler );
protected: protected:
virtual ~UcbLockBytes (void); virtual ~UcbLockBytes (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment