diff options
Diffstat (limited to 'comphelper/inc/comphelper/make_shared_from_uno.hxx')
-rw-r--r-- | comphelper/inc/comphelper/make_shared_from_uno.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/inc/comphelper/make_shared_from_uno.hxx b/comphelper/inc/comphelper/make_shared_from_uno.hxx index 4cbb3a17c362..9f01bb34c701 100644 --- a/comphelper/inc/comphelper/make_shared_from_uno.hxx +++ b/comphelper/inc/comphelper/make_shared_from_uno.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,7 +44,7 @@ template <typename T> struct ReleaseFunc : ::std::unary_function<T *, void> { /** Makes a boost::shared_ptr from a ref-counted UNO object pointer. This makes sense if the object is used via UNO (implementing some X interface) and also internally using its implementation class, e.g. - + <pre> boost::shared_ptr<MyUnoImpl> const ptr( comphelper::make_shared_from_UNO( new MyUnoImpl ) ); @@ -54,12 +54,12 @@ template <typename T> struct ReleaseFunc : ::std::unary_function<T *, void> { takeSharedPtr( ptr ); ... </pre> - + @attention The shared_ptr operates on a separate reference counter, so weak pointers (boost::weak_ptr) are invalidated when the last shared_ptr is destroyed, although the UNO object may still be alive. - + @param p object pointer @return shared_ptr to object */ |