summaryrefslogtreecommitdiff
path: root/comphelper/source/container
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 18:58:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:18 +0100
commit962b77340f03f89ae22b7a1e84e856e8d589c8b6 (patch)
tree263dd868a6039cf1dce877953fe1141c14804529 /comphelper/source/container
parentfb09b1f3c6e57cb8e679af982f88b96660c14a4c (diff)
Clean up C-style casts from pointers to void
Change-Id: Icdb619101a992a740c71545e669e138cb5dc63a6
Diffstat (limited to 'comphelper/source/container')
-rw-r--r--comphelper/source/container/container.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index dffc2a36d30c..43a50cccd192 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -66,7 +66,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
if (xContainerAccess.is() && xContainerAccess->getCount() && ShouldStepInto(xContainerAccess))
{
::com::sun::star::uno::Any aElement(xContainerAccess->getByIndex(0));
- xSearchLoop = *(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>*)aElement.getValue();
+ xSearchLoop = *static_cast<css::uno::Reference< ::com::sun::star::uno::XInterface> const *>(aElement.getValue());
bCheckingStartingPoint = false;
m_arrChildIndizies.push_back((sal_Int32)0);
@@ -91,7 +91,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
++nOldSearchChildIndex;
// and check the next child
::com::sun::star::uno::Any aElement(xContainerAccess->getByIndex(nOldSearchChildIndex));
- xSearchLoop = *(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>*) aElement.getValue();
+ xSearchLoop = *static_cast<css::uno::Reference< ::com::sun::star::uno::XInterface> const *>(aElement.getValue());
bCheckingStartingPoint = false;
// and update its position in the list.
m_arrChildIndizies.push_back((sal_Int32)nOldSearchChildIndex);