From 3735d9d387398fd90ab63ce2b1367dd154bd0fb9 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Fri, 10 Oct 2008 13:02:43 +0000 Subject: CWS-TOOLING: integrate CWS cmcfixes49 --- o3tl/inc/o3tl/cow_wrapper.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'o3tl') 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 -- cgit v1.2.1