summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoportenum.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-18 23:03:35 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-20 16:40:15 +0200
commitc5390b3ee9d04a22817335208d8db673c4463a95 (patch)
treecaebdad1f43d512dc275436cf4ab796694cc8008 /sw/source/core/unocore/unoportenum.cxx
parent57b29dc9d475b8b674b32bf5d073175bac61ac14 (diff)
SwXDocumentIndexMark::CreateXDocumentIndexMark does not need SwTOXType
... passed in as parameter since it's always the one from pMark. Change-Id: Ia5981b0f281c8cac70cbb305c82bb6785918168a
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r--sw/source/core/unocore/unoportenum.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index 9eabdcf50699..e021622d2c96 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -537,8 +537,7 @@ lcl_CreateTOXMarkPortion(
SwTOXMark & rTOXMark = static_cast<SwTOXMark&>(rAttr.GetAttr());
const Reference<XTextContent> xContent(
- SwXDocumentIndexMark::CreateXDocumentIndexMark(*pDoc,
- const_cast<SwTOXType*>(rTOXMark.GetTOXType()), & rTOXMark),
+ SwXDocumentIndexMark::CreateXDocumentIndexMark(*pDoc, & rTOXMark),
uno::UNO_QUERY);
SwXTextPortion* pPortion = 0;