diff options
author | Stephan Bergmann <sb@openoffice.org> | 2001-06-12 09:37:05 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2001-06-12 09:37:05 +0000 |
commit | 76e1dce0cc9c4d27c346fc4e4daf479f2cd789e8 (patch) | |
tree | 62562fb1c584a8e4a7b35a3f2e93017b911e09f6 /ucb/workben/cachemap/cachemapobject1.hxx | |
parent | 21f85ea572f0c4824c6acb97ac6f0511f33bdcdd (diff) |
Added missing class-key to friend declarations.
Diffstat (limited to 'ucb/workben/cachemap/cachemapobject1.hxx')
-rw-r--r-- | ucb/workben/cachemap/cachemapobject1.hxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ucb/workben/cachemap/cachemapobject1.hxx b/ucb/workben/cachemap/cachemapobject1.hxx index b17c8099579b..d4f13474f9c7 100644 --- a/ucb/workben/cachemap/cachemapobject1.hxx +++ b/ucb/workben/cachemap/cachemapobject1.hxx @@ -2,9 +2,9 @@ * * $RCSfile: cachemapobject1.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: sb $ $Date: 2001-06-11 13:03:12 $ + * last change: $Author: sb $ $Date: 2001-06-12 10:37:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,7 +109,7 @@ private: void releaseElement(Object1 * pElement) SAL_THROW(()); - friend Object1; // to access Map, releaseElement() + friend class Object1; // to access Map, releaseElement() }; class Object1 @@ -133,9 +133,14 @@ private: Object1(Object1 &); // not implemented void operator =(Object1); // not implemented - friend ObjectContainer1; + friend class ObjectContainer1; // to access m_aContainerIt, m_nRefCount, Object1(), ~Object1() - friend std::auto_ptr< Object1 >; // to access ~Object1() +#if defined WNT + friend struct std::auto_ptr< Object1 >; // to access ~Object1() + // work around compiler bug... +#else // WNT + friend class std::auto_ptr< Object1 >; // to access ~Object1() +#endif // WNT }; } } |