summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-12-26 10:32:12 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-03 15:25:19 +0100
commitfa9f3c7bb2c8c1df5d5b1dcb0d92f537753c72db (patch)
treedb0036463d92f2e31e5a3b9d35bd3abfe3e62ebd /sw
parentfa39e7970496537258eaad1f5351db2d675225b6 (diff)
Avoid unnecessary downcast
Change-Id: Ib2de94071ce0f80932fe31e40f7e3d434c0a274f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unocoll.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index c200afed30da..72b93371d4e7 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -1440,7 +1440,7 @@ uno::Any SwXTextSections::getByIndex(sal_Int32 nIndex)
}
if(nIndex >= 0 && static_cast<size_t>(nIndex) < rFmts.size())
{
- SwSectionFmt* pFmt = rFmts[(sal_uInt16)nIndex];
+ SwSectionFmt* pFmt = rFmts[nIndex];
xRet = GetObject(*pFmt);
}
else