summaryrefslogtreecommitdiff
path: root/include/osl/mutex.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-07 12:26:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-07 12:36:01 +0100
commit4a2f64620370587161b5437069c2f1d9f3d702d1 (patch)
tree5dac0ae9aaff806b9abe5c120d964abb4c360bed /include/osl/mutex.hxx
parent034f2e1a2ace6c05e0a9fde192f4929303754544 (diff)
loplugin:deletedspecial
Change-Id: I646d55ee80ceeefbb3647ec64278460cc5af579f
Diffstat (limited to 'include/osl/mutex.hxx')
-rw-r--r--include/osl/mutex.hxx32
1 files changed, 10 insertions, 22 deletions
diff --git a/include/osl/mutex.hxx b/include/osl/mutex.hxx
index 4722cd6a3758..f42323b9fd0a 100644
--- a/include/osl/mutex.hxx
+++ b/include/osl/mutex.hxx
@@ -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;