summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-10 10:37:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-10 21:46:38 +0000
commitb279f8a655bd2e0b82e3096e28efafa63c895ceb (patch)
tree81008ebd146e0795d9f7b8ce58c31504e5dc5d58 /xmloff
parentbf0c43f0d26be225ea630a8846e77ff39dfc6703 (diff)
cppcheck: cstyleCast
Change-Id: I0b5caeac629527112e3c7129b274b076da467d8d
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtexppr.cxx4
-rw-r--r--xmloff/source/text/txtimp.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx
index dbe9f0c2825f..8709afba5b3f 100644
--- a/xmloff/source/text/txtexppr.cxx
+++ b/xmloff/source/text/txtexppr.cxx
@@ -49,7 +49,7 @@ void XMLTextExportPropertySetMapper::handleElementItem(
sal_uInt32 nIdx ) const
{
XMLTextExportPropertySetMapper *pThis =
- ((XMLTextExportPropertySetMapper *)this);
+ const_cast<XMLTextExportPropertySetMapper*>(this);
switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) )
{
@@ -133,7 +133,7 @@ void XMLTextExportPropertySetMapper::handleSpecialItem(
sal_uInt32 nIdx ) const
{
XMLTextExportPropertySetMapper *pThis =
- ((XMLTextExportPropertySetMapper *)this);
+ const_cast<XMLTextExportPropertySetMapper*>(this);
switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) )
{
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 7be24938e296..f69baba7fa44 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2660,7 +2660,7 @@ bool XMLTextImportHelper::IsInFrame() const
// are we currently in a text frame? yes, if the cursor has a
// TextFrame property and it's non-NULL
- Reference<XPropertySet> xPropSet(((XMLTextImportHelper *)this)->GetCursor(), UNO_QUERY);
+ Reference<XPropertySet> xPropSet(const_cast<XMLTextImportHelper*>(this)->GetCursor(), UNO_QUERY);
if (xPropSet.is())
{
if (xPropSet->getPropertySetInfo()->hasPropertyByName(s_TextFrame))