diff options
author | Hennes Rohling <hro@openoffice.org> | 2002-10-15 12:32:34 +0000 |
---|---|---|
committer | Hennes Rohling <hro@openoffice.org> | 2002-10-15 12:32:34 +0000 |
commit | b51cd3f1273d789bd0173ebbe27026495fa2d22c (patch) | |
tree | 2d491f5682d2c8d5728d44e9290699b031242226 /sal | |
parent | ba187812aa57da20117a0b9c85a77336f964e591 (diff) |
#98600# Added copy ctor and assignment operator for Guard, ClearableGuard and ResetableGuard
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/osl/mutex.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sal/inc/osl/mutex.hxx b/sal/inc/osl/mutex.hxx index 9679bfda830a..7f487291fb5a 100644 --- a/sal/inc/osl/mutex.hxx +++ b/sal/inc/osl/mutex.hxx @@ -2,9 +2,9 @@ * * $RCSfile: mutex.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: obr $ $Date: 2001-11-12 14:40:49 $ + * last change: $Author: hro $ $Date: 2002-10-15 13:32:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -142,6 +142,10 @@ namespace osl template<class T> class Guard { + private: + Guard( const Guard& ); + const Guard& operator = ( const Guard& ); + protected: T * pT; public: @@ -172,6 +176,9 @@ namespace osl template<class T> class ClearableGuard { + private: + ClearableGuard( const ClearableGuard& ); + const ClearableGuard& operator = ( const ClearableGuard& ); protected: T * pT; public: |