summaryrefslogtreecommitdiff
path: root/o3tl/inc/o3tl/cow_wrapper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'o3tl/inc/o3tl/cow_wrapper.hxx')
-rw-r--r--o3tl/inc/o3tl/cow_wrapper.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/o3tl/inc/o3tl/cow_wrapper.hxx b/o3tl/inc/o3tl/cow_wrapper.hxx
index b7b3c5b9480a..9b281e3967bf 100644
--- a/o3tl/inc/o3tl/cow_wrapper.hxx
+++ b/o3tl/inc/o3tl/cow_wrapper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cow_wrapper.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.10.1 $
*
* This file is part of OpenOffice.org.
*
@@ -205,6 +205,7 @@ void cow_wrapper_client::queryUnmodified() const
public:
typedef T value_type;
typedef T* pointer;
+ typedef const T* const_pointer;
typedef MTPolicy mt_policy;
/** Default-construct wrapped type instance
@@ -278,11 +279,11 @@ void cow_wrapper_client::queryUnmodified() const
pointer operator->() { return &make_unique(); }
value_type& operator*() { return make_unique(); }
- const pointer operator->() const { return &m_pimpl->m_value; }
+ const_pointer operator->() const { return &m_pimpl->m_value; }
const value_type& operator*() const { return m_pimpl->m_value; }
pointer get() { return &make_unique(); }
- const pointer get() const { return &m_pimpl->m_value; }
+ const_pointer get() const { return &m_pimpl->m_value; }
/// true, if both cow_wrapper internally share the same object
bool same_object( const cow_wrapper& rOther ) const