summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unobkm.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-02-24 09:47:18 +0000
committerNoel Power <noel.power@novell.com>2011-02-24 09:50:04 +0000
commitd327558eb3dac443bf0f428ff1846473cc6166e0 (patch)
treed5dbc328e76103205784e7a447fe075c3b82b7c7 /sw/source/core/unocore/unobkm.cxx
parent97e6d9a68e267e8e0a49b9de5f775e855421e5aa (diff)
more form field cleanup
sw/inc/unocoll.hxx: removed support for the ODF_FORM_CHECKBOX & ODF_FORM_LISTBOX services, they aren't needed at all sw/source/core/unocore/unocoll.cxx; as above sw/source/core/unocore/unobkm.cxx: minor tweaking to use const_cast
Diffstat (limited to 'sw/source/core/unocore/unobkm.cxx')
-rw-r--r--sw/source/core/unocore/unobkm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx
index 0993a10ce60d..75937025a42e 100644
--- a/sw/source/core/unocore/unobkm.cxx
+++ b/sw/source/core/unocore/unobkm.cxx
@@ -684,7 +684,7 @@ SwXFieldmark::getCheckboxFieldmark()
::sw::mark::ICheckboxFieldmark* pCheckboxFm = NULL;
if ( getFieldType() == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(ODF_FORMCHECKBOX) ) )
// evil #TODO #FIXME casting away the const-ness
- pCheckboxFm = (::sw::mark::ICheckboxFieldmark*)(reinterpret_cast< const ::sw::mark::ICheckboxFieldmark* >( GetBookmark()));
+ pCheckboxFm = const_cast<sw::mark::ICheckboxFieldmark*>(reinterpret_cast< const ::sw::mark::ICheckboxFieldmark* >( GetBookmark()));
return pCheckboxFm;
}