diff options
-rw-r--r-- | include/xmloff/prhdlfac.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/prhdlfac.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/xmloff/prhdlfac.hxx b/include/xmloff/prhdlfac.hxx index e21b5cb32415..3b045831c49a 100644 --- a/include/xmloff/prhdlfac.hxx +++ b/include/xmloff/prhdlfac.hxx @@ -95,7 +95,7 @@ private: const; typedef ::std::map< sal_Int32, XMLPropertyHandler* > CacheMap; - CacheMap maHandlerCache; + mutable CacheMap maHandlerCache; }; #endif // INCLUDED_XMLOFF_PRHDLFAC_HXX diff --git a/xmloff/source/style/prhdlfac.cxx b/xmloff/source/style/prhdlfac.cxx index 002c7f43a90a..5607585264a0 100644 --- a/xmloff/source/style/prhdlfac.cxx +++ b/xmloff/source/style/prhdlfac.cxx @@ -122,9 +122,7 @@ XMLPropertyHandler* XMLPropertyHandlerFactory::GetHdlCache( sal_Int32 nType ) co void XMLPropertyHandlerFactory::PutHdlCache( sal_Int32 nType, const XMLPropertyHandler* pHdl ) const { - // Don't be wondered about the following construct. The sense is to be able to provide a const- - // method as class-interface. - ((XMLPropertyHandlerFactory*)this)->maHandlerCache[ nType ] = (XMLPropertyHandler*)pHdl; + maHandlerCache[nType] = (XMLPropertyHandler*)pHdl; } const XMLPropertyHandler* XMLPropertyHandlerFactory::GetBasicHandler( sal_Int32 nType ) const |