loplugin:deletedspecial
Change-Id: I646d55ee80ceeefbb3647ec64278460cc5af579f
This commit is contained in:
parent
034f2e1a2a
commit
4a2f646203
8 changed files with 35 additions and 65 deletions
|
@ -97,25 +97,12 @@ namespace osl
|
|||
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.
|
||||
|
||||
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
|
||||
/** This assignment operator is deleted for the same reason as
|
||||
the copy constructor.
|
||||
*/
|
||||
Condition& operator= (const Condition&);
|
||||
|
||||
/** This assignment operator is private for the same reason as
|
||||
the constructor taking a oslCondition argument.
|
||||
*/
|
||||
Condition& operator= (oslCondition);
|
||||
Condition& operator= (const Condition&) SAL_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -136,9 +136,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
// not impl:
|
||||
ObjectRegistry( ObjectRegistry const& );
|
||||
ObjectRegistry const& operator=( ObjectRegistry const& );
|
||||
ObjectRegistry( ObjectRegistry const& ) SAL_DELETED_FUNCTION;
|
||||
ObjectRegistry const& operator=( ObjectRegistry const& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
ObjectRegistryData m_data;
|
||||
};
|
||||
|
|
|
@ -419,12 +419,12 @@ class VolumeInfo
|
|||
/** Copy constructor.
|
||||
*/
|
||||
|
||||
VolumeInfo( VolumeInfo& );
|
||||
VolumeInfo( VolumeInfo& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
/** Assginment operator.
|
||||
*/
|
||||
|
||||
VolumeInfo& operator = ( VolumeInfo& );
|
||||
VolumeInfo& operator = ( VolumeInfo& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -657,12 +657,12 @@ class FileStatus
|
|||
/** Copy constructor.
|
||||
*/
|
||||
|
||||
FileStatus( FileStatus& );
|
||||
FileStatus( FileStatus& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
/** Assignment operator.
|
||||
*/
|
||||
|
||||
FileStatus& operator = ( FileStatus& );
|
||||
FileStatus& operator = ( FileStatus& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -911,12 +911,12 @@ class File: public FileBase
|
|||
/** Copy constructor.
|
||||
*/
|
||||
|
||||
File( File& );
|
||||
File( File& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
/** Assginment operator.
|
||||
*/
|
||||
|
||||
File& operator = ( File& );
|
||||
File& operator = ( File& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -1654,12 +1654,12 @@ class Directory: public FileBase
|
|||
/** Copy constructor.
|
||||
*/
|
||||
|
||||
Directory( Directory& );
|
||||
Directory( Directory& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
/** Assignment operator.
|
||||
*/
|
||||
|
||||
Directory& operator = ( Directory& );
|
||||
Directory& operator = ( Directory& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ namespace osl
|
|||
|
||||
class Module
|
||||
{
|
||||
Module( const Module&);
|
||||
Module& operator = ( const Module&);
|
||||
Module( const Module&) SAL_DELETED_FUNCTION;
|
||||
Module& operator = ( const Module&) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
static bool getUrlFromAddress(void * addr, ::rtl::OUString & libraryUrl) {
|
||||
|
|
|
@ -94,25 +94,12 @@ namespace osl
|
|||
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.
|
||||
|
||||
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
|
||||
/** This assignment operator is deleted for the same reason as
|
||||
the copy constructor.
|
||||
*/
|
||||
Mutex& operator= (const Mutex&);
|
||||
|
||||
/** This assignment operator is private for the same reason as
|
||||
the constructor taking a oslMutex argument.
|
||||
*/
|
||||
Mutex& operator= (oslMutex);
|
||||
Mutex& operator= (const Mutex&) SAL_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
/** A helper class for mutex objects and interfaces.
|
||||
|
@ -121,8 +108,8 @@ namespace osl
|
|||
class Guard
|
||||
{
|
||||
private:
|
||||
Guard( const Guard& );
|
||||
const Guard& operator = ( const Guard& );
|
||||
Guard( const Guard& ) SAL_DELETED_FUNCTION;
|
||||
const Guard& operator = ( const Guard& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
protected:
|
||||
T * pT;
|
||||
|
@ -155,8 +142,9 @@ namespace osl
|
|||
class ClearableGuard
|
||||
{
|
||||
private:
|
||||
ClearableGuard( const ClearableGuard& );
|
||||
const ClearableGuard& operator = ( const ClearableGuard& );
|
||||
ClearableGuard( const ClearableGuard& ) SAL_DELETED_FUNCTION;
|
||||
const ClearableGuard& operator = ( const ClearableGuard& )
|
||||
SAL_DELETED_FUNCTION;
|
||||
protected:
|
||||
T * pT;
|
||||
public:
|
||||
|
@ -201,8 +189,8 @@ namespace osl
|
|||
class ResettableGuard : public ClearableGuard< T >
|
||||
{
|
||||
private:
|
||||
ResettableGuard(ResettableGuard &); // not defined
|
||||
void operator =(ResettableGuard &); // not defined
|
||||
ResettableGuard(ResettableGuard &) SAL_DELETED_FUNCTION;
|
||||
void operator =(ResettableGuard &) SAL_DELETED_FUNCTION;
|
||||
|
||||
protected:
|
||||
T* pResetT;
|
||||
|
|
|
@ -46,8 +46,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param);
|
|||
*/
|
||||
class Thread
|
||||
{
|
||||
Thread( const Thread& );
|
||||
Thread& operator= ( const Thread& );
|
||||
Thread( const Thread& ) SAL_DELETED_FUNCTION;
|
||||
Thread& operator= ( const Thread& ) SAL_DELETED_FUNCTION;
|
||||
public:
|
||||
// these are here to force memory de/allocation to sal lib.
|
||||
inline static void * SAL_CALL operator new( size_t nSize )
|
||||
|
@ -187,8 +187,8 @@ extern "C" inline void SAL_CALL threadFunc( void* param)
|
|||
|
||||
class ThreadData
|
||||
{
|
||||
ThreadData( const ThreadData& );
|
||||
ThreadData& operator= (const ThreadData& );
|
||||
ThreadData( const ThreadData& ) SAL_DELETED_FUNCTION;
|
||||
ThreadData& operator= (const ThreadData& ) SAL_DELETED_FUNCTION;
|
||||
public:
|
||||
/// Create a thread specific local data key
|
||||
ThreadData( oslThreadKeyCallbackFunction pCallback= 0 )
|
||||
|
|
|
@ -27,8 +27,8 @@ namespace rtl
|
|||
{
|
||||
void * _handle;
|
||||
|
||||
inline Bootstrap( Bootstrap const & ); // not impl
|
||||
inline Bootstrap & operator = ( Bootstrap const & ); // not impl
|
||||
Bootstrap( Bootstrap const & ) SAL_DELETED_FUNCTION;
|
||||
Bootstrap & operator = ( Bootstrap const & ) SAL_DELETED_FUNCTION;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
|
@ -65,17 +65,13 @@ public:
|
|||
rtl::OUString const & rBaseUriRef, rtl::OUString const & rRelUriRef);
|
||||
|
||||
private:
|
||||
/** not implemented */
|
||||
Uri();
|
||||
Uri() SAL_DELETED_FUNCTION;
|
||||
|
||||
/** not implemented */
|
||||
Uri(Uri &);
|
||||
Uri(Uri &) SAL_DELETED_FUNCTION;
|
||||
|
||||
/** not implemented */
|
||||
~Uri();
|
||||
~Uri() SAL_DELETED_FUNCTION;
|
||||
|
||||
/** not implemented */
|
||||
void operator =(Uri);
|
||||
void operator =(Uri) SAL_DELETED_FUNCTION;
|
||||
};
|
||||
|
||||
inline rtl::OUString Uri::encode(rtl::OUString const & rText,
|
||||
|
|
Loading…
Reference in a new issue