summaryrefslogtreecommitdiff
path: root/comphelper/source/container/container.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/container/container.cxx')
-rw-r--r--comphelper/source/container/container.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index 9bd468e9d450..a8bd89639451 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -79,7 +79,7 @@ css::uno::Reference< css::uno::XInterface> IndexAccessIterator::Next()
OSL_ENSURE(xChild.is(), "IndexAccessIterator::Next : a content has no appropriate interface !");
css::uno::Reference< css::uno::XInterface> xParent( xChild->getParent());
- xContainerAccess = css::uno::Reference< css::container::XIndexAccess>(xParent, css::uno::UNO_QUERY);
+ xContainerAccess.set(xParent, css::uno::UNO_QUERY);
OSL_ENSURE(xContainerAccess.is(), "IndexAccessIterator::Next : a content has an invalid parent !");
// Remove the index that SearchLoop had within this parent from my stack