summaryrefslogtreecommitdiff
path: root/sw/inc/unocrsrhelper.hxx
diff options
context:
space:
mode:
authorJuan Picca <jumapico@gmail.com>2014-11-17 10:48:32 -0200
committerTakeshi Abe <tabe@fixedpoint.jp>2014-11-25 03:08:04 +0000
commitee42495de1279f9966dd2305966ab96711403463 (patch)
treed006a24fffd9cc2c805556fd7d793ff468679793 /sw/inc/unocrsrhelper.hxx
parent46e6f78f2b7595e7009975a2365395a74ca2df83 (diff)
fdo#75757: remove inheritance to std::map
Change-Id: I9dfabddf4b51994c1ae078582dec3f385e7d1a5c Reviewed-on: https://gerrit.libreoffice.org/12513 Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp> Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sw/inc/unocrsrhelper.hxx')
-rw-r--r--sw/inc/unocrsrhelper.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index ade29a1abe88..f5949ddec1b5 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -19,7 +19,7 @@
#ifndef INCLUDED_SW_INC_UNOCRSRHELPER_HXX
#define INCLUDED_SW_INC_UNOCRSRHELPER_HXX
-#include <map>
+#include <boost/ptr_container/ptr_map.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -66,13 +66,11 @@ enum SwGetPropertyStatesCaller
namespace SwUnoCursorHelper
{
- // keep Any's mapped by (WhichId << 16 ) + (MemberId)
- typedef std::map< sal_uInt32, com::sun::star::uno::Any *> AnyMapHelper_t;
- class SwAnyMapHelper : public AnyMapHelper_t
+ class SwAnyMapHelper
{
+ // keep Any's mapped by (WhichId << 16 ) + (MemberId)
+ boost::ptr_map<sal_uInt32,com::sun::star::uno::Any> maMap;
public:
- ~SwAnyMapHelper();
-
void SetValue( sal_uInt16 nWhichId, sal_uInt16 nMemberId, const com::sun::star::uno::Any& rAny );
bool FillValue( sal_uInt16 nWhichId, sal_uInt16 nMemberId, const com::sun::star::uno::Any*& pAny );
};