diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-25 15:13:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-25 15:54:02 -0400 |
commit | dbf84a3574dd3524fcb8d89c3dcb91182656e1ce (patch) | |
tree | de5c8bffe059d6cb754320f83fa6d81356731a77 /xmloff | |
parent | 63a94bd053ecd3079003344904c2030339b7c8a6 (diff) |
The 'mutable' keyword exists for this kind of use.
Change-Id: Ic52192f53039b7f1b4529a93c13de74c5f54e7f8
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/prhdlfac.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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 |