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 | |
parent | 21f85ea572f0c4824c6acb97ac6f0511f33bdcdd (diff) |
Added missing class-key to friend declarations.
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/workben/cachemap/cachemapobject1.hxx | 15 | ||||
-rw-r--r-- | ucb/workben/cachemap/cachemapobject3.hxx | 15 |
2 files changed, 20 insertions, 10 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 }; } } diff --git a/ucb/workben/cachemap/cachemapobject3.hxx b/ucb/workben/cachemap/cachemapobject3.hxx index 6051590e546b..4b47c0156f12 100644 --- a/ucb/workben/cachemap/cachemapobject3.hxx +++ b/ucb/workben/cachemap/cachemapobject3.hxx @@ -2,9 +2,9 @@ * * $RCSfile: cachemapobject3.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:05 $ * * 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(Object3 * pElement) SAL_THROW(()); - friend Object3; // to access Map, releaseElement() + friend class Object3; // to access Map, releaseElement() }; class Object3 @@ -132,9 +132,14 @@ private: Object3(Object3 &); // not implemented void operator =(Object3); // not implemented - friend ObjectContainer3; + friend class ObjectContainer3; // to access m_aContainerIt, m_nRefCount, Object3(), ~Object3() - friend std::auto_ptr< Object3 >; // to access ~Object3() +#if defined WNT + friend struct std::auto_ptr< Object3 >; // to access ~Object3() + // work around compiler bug... +#else // WNT + friend class std::auto_ptr< Object3 >; // to access ~Object3() +#endif // WNT }; } } |