summaryrefslogtreecommitdiff
path: root/o3tl/inc/o3tl/cow_wrapper.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-10-10 13:02:43 +0000
committerOliver Bolte <obo@openoffice.org>2008-10-10 13:02:43 +0000
commit3735d9d387398fd90ab63ce2b1367dd154bd0fb9 (patch)
tree1e9e71bcaf766edbcdde3e54149c816da72ccd13 /o3tl/inc/o3tl/cow_wrapper.hxx
parent1bed162a7494769275db0831810f51069415881f (diff)
CWS-TOOLING: integrate CWS cmcfixes49
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