Kaydet (Commit) 4a2f6462 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:deletedspecial

Change-Id: I646d55ee80ceeefbb3647ec64278460cc5af579f
üst 034f2e1a
...@@ -97,25 +97,12 @@ namespace osl ...@@ -97,25 +97,12 @@ namespace osl
constructed Condition may work on an already destructed oslCondition object. constructed Condition may work on an already destructed oslCondition object.
*/ */
Condition(const Condition&); Condition(const Condition&) SAL_DELETED_FUNCTION;
/** The underlying oslCondition has no reference count. /** This assignment operator is deleted for the same reason as
When destructed, the Condition object destroys the undelying oslCondition,
which might cause severe problems in case it's a temporary object.
*/
Condition(oslCondition condition);
/** This assignment operator is private for the same reason as
the copy constructor. the copy constructor.
*/ */
Condition& operator= (const Condition&); Condition& operator= (const Condition&) SAL_DELETED_FUNCTION;
/** This assignment operator is private for the same reason as
the constructor taking a oslCondition argument.
*/
Condition& operator= (oslCondition);
}; };
} }
......
...@@ -136,9 +136,8 @@ public: ...@@ -136,9 +136,8 @@ public:
} }
private: private:
// not impl: ObjectRegistry( ObjectRegistry const& ) SAL_DELETED_FUNCTION;
ObjectRegistry( ObjectRegistry const& ); ObjectRegistry const& operator=( ObjectRegistry const& ) SAL_DELETED_FUNCTION;
ObjectRegistry const& operator=( ObjectRegistry const& );
ObjectRegistryData m_data; ObjectRegistryData m_data;
}; };
......
...@@ -419,12 +419,12 @@ class VolumeInfo ...@@ -419,12 +419,12 @@ class VolumeInfo
/** Copy constructor. /** Copy constructor.
*/ */
VolumeInfo( VolumeInfo& ); VolumeInfo( VolumeInfo& ) SAL_DELETED_FUNCTION;
/** Assginment operator. /** Assginment operator.
*/ */
VolumeInfo& operator = ( VolumeInfo& ); VolumeInfo& operator = ( VolumeInfo& ) SAL_DELETED_FUNCTION;
public: public:
...@@ -657,12 +657,12 @@ class FileStatus ...@@ -657,12 +657,12 @@ class FileStatus
/** Copy constructor. /** Copy constructor.
*/ */
FileStatus( FileStatus& ); FileStatus( FileStatus& ) SAL_DELETED_FUNCTION;
/** Assignment operator. /** Assignment operator.
*/ */
FileStatus& operator = ( FileStatus& ); FileStatus& operator = ( FileStatus& ) SAL_DELETED_FUNCTION;
public: public:
...@@ -911,12 +911,12 @@ class File: public FileBase ...@@ -911,12 +911,12 @@ class File: public FileBase
/** Copy constructor. /** Copy constructor.
*/ */
File( File& ); File( File& ) SAL_DELETED_FUNCTION;
/** Assginment operator. /** Assginment operator.
*/ */
File& operator = ( File& ); File& operator = ( File& ) SAL_DELETED_FUNCTION;
public: public:
...@@ -1654,12 +1654,12 @@ class Directory: public FileBase ...@@ -1654,12 +1654,12 @@ class Directory: public FileBase
/** Copy constructor. /** Copy constructor.
*/ */
Directory( Directory& ); Directory( Directory& ) SAL_DELETED_FUNCTION;
/** Assignment operator. /** Assignment operator.
*/ */
Directory& operator = ( Directory& ); Directory& operator = ( Directory& ) SAL_DELETED_FUNCTION;
public: public:
......
...@@ -28,8 +28,8 @@ namespace osl ...@@ -28,8 +28,8 @@ namespace osl
class Module class Module
{ {
Module( const Module&); Module( const Module&) SAL_DELETED_FUNCTION;
Module& operator = ( const Module&); Module& operator = ( const Module&) SAL_DELETED_FUNCTION;
public: public:
static bool getUrlFromAddress(void * addr, ::rtl::OUString & libraryUrl) { static bool getUrlFromAddress(void * addr, ::rtl::OUString & libraryUrl) {
......
...@@ -94,25 +94,12 @@ namespace osl ...@@ -94,25 +94,12 @@ namespace osl
constructed Mutex may work on an already destructed oslMutex object. constructed Mutex may work on an already destructed oslMutex object.
*/ */
Mutex(const Mutex&); Mutex(const Mutex&) SAL_DELETED_FUNCTION;
/** The underlying oslMutex has no reference count. /** This assignment operator is deleted for the same reason as
When destructed, the Mutex object destroys the undelying oslMutex,
which might cause severe problems in case it's a temporary object.
*/
Mutex(oslMutex Mutex);
/** This assignment operator is private for the same reason as
the copy constructor. the copy constructor.
*/ */
Mutex& operator= (const Mutex&); Mutex& operator= (const Mutex&) SAL_DELETED_FUNCTION;
/** This assignment operator is private for the same reason as
the constructor taking a oslMutex argument.
*/
Mutex& operator= (oslMutex);
}; };
/** A helper class for mutex objects and interfaces. /** A helper class for mutex objects and interfaces.
...@@ -121,8 +108,8 @@ namespace osl ...@@ -121,8 +108,8 @@ namespace osl
class Guard class Guard
{ {
private: private:
Guard( const Guard& ); Guard( const Guard& ) SAL_DELETED_FUNCTION;
const Guard& operator = ( const Guard& ); const Guard& operator = ( const Guard& ) SAL_DELETED_FUNCTION;
protected: protected:
T * pT; T * pT;
...@@ -155,8 +142,9 @@ namespace osl ...@@ -155,8 +142,9 @@ namespace osl
class ClearableGuard class ClearableGuard
{ {
private: private:
ClearableGuard( const ClearableGuard& ); ClearableGuard( const ClearableGuard& ) SAL_DELETED_FUNCTION;
const ClearableGuard& operator = ( const ClearableGuard& ); const ClearableGuard& operator = ( const ClearableGuard& )
SAL_DELETED_FUNCTION;
protected: protected:
T * pT; T * pT;
public: public:
...@@ -201,8 +189,8 @@ namespace osl ...@@ -201,8 +189,8 @@ namespace osl
class ResettableGuard : public ClearableGuard< T > class ResettableGuard : public ClearableGuard< T >
{ {
private: private:
ResettableGuard(ResettableGuard &); // not defined ResettableGuard(ResettableGuard &) SAL_DELETED_FUNCTION;
void operator =(ResettableGuard &); // not defined void operator =(ResettableGuard &) SAL_DELETED_FUNCTION;
protected: protected:
T* pResetT; T* pResetT;
......
...@@ -46,8 +46,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param); ...@@ -46,8 +46,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param);
*/ */
class Thread class Thread
{ {
Thread( const Thread& ); Thread( const Thread& ) SAL_DELETED_FUNCTION;
Thread& operator= ( const Thread& ); Thread& operator= ( const Thread& ) SAL_DELETED_FUNCTION;
public: public:
// these are here to force memory de/allocation to sal lib. // these are here to force memory de/allocation to sal lib.
inline static void * SAL_CALL operator new( size_t nSize ) inline static void * SAL_CALL operator new( size_t nSize )
...@@ -187,8 +187,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param) ...@@ -187,8 +187,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param)
class ThreadData class ThreadData
{ {
ThreadData( const ThreadData& ); ThreadData( const ThreadData& ) SAL_DELETED_FUNCTION;
ThreadData& operator= (const ThreadData& ); ThreadData& operator= (const ThreadData& ) SAL_DELETED_FUNCTION;
public: public:
/// Create a thread specific local data key /// Create a thread specific local data key
ThreadData( oslThreadKeyCallbackFunction pCallback= 0 ) ThreadData( oslThreadKeyCallbackFunction pCallback= 0 )
......
...@@ -27,8 +27,8 @@ namespace rtl ...@@ -27,8 +27,8 @@ namespace rtl
{ {
void * _handle; void * _handle;
inline Bootstrap( Bootstrap const & ); // not impl Bootstrap( Bootstrap const & ) SAL_DELETED_FUNCTION;
inline Bootstrap & operator = ( Bootstrap const & ); // not impl Bootstrap & operator = ( Bootstrap const & ) SAL_DELETED_FUNCTION;
public: public:
/** /**
......
...@@ -65,17 +65,13 @@ public: ...@@ -65,17 +65,13 @@ public:
rtl::OUString const & rBaseUriRef, rtl::OUString const & rRelUriRef); rtl::OUString const & rBaseUriRef, rtl::OUString const & rRelUriRef);
private: private:
/** not implemented */ Uri() SAL_DELETED_FUNCTION;
Uri();
/** not implemented */ Uri(Uri &) SAL_DELETED_FUNCTION;
Uri(Uri &);
/** not implemented */ ~Uri() SAL_DELETED_FUNCTION;
~Uri();
/** not implemented */ void operator =(Uri) SAL_DELETED_FUNCTION;
void operator =(Uri);
}; };
inline rtl::OUString Uri::encode(rtl::OUString const & rText, inline rtl::OUString Uri::encode(rtl::OUString const & rText,
......
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