summaryrefslogtreecommitdiffstats
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-22 17:09:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 08:08:00 +0100
commitad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca (patch)
tree5b11b7812b84c2647c64d1002bad7ed8a1d1754d /unotools
parentReplace deprecated std::auto_ptr with boost::scoped_ptr (diff)
downloadcore-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.tar.gz
core-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.zip
Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/confignode.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index 11f2bd3c3d18..9032043ea408 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -30,7 +30,6 @@
#include <com/sun/star/util/XStringEscape.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/container/XNamed.hpp>
-#include <comphelper/extract.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <rtl/string.hxx>
#if OSL_DEBUG_LEVEL > 0
@@ -300,12 +299,17 @@ namespace utl
Reference< XInterface > xNode;
if (m_xDirectAccess.is() && m_xDirectAccess->hasByName(sNormalized))
{
- if (!::cppu::extractInterface(xNode, m_xDirectAccess->getByName(sNormalized)))
+ xNode.set(
+ m_xDirectAccess->getByName(sNormalized), css::uno::UNO_QUERY);
+ if (!xNode.is())
OSL_FAIL("OConfigurationNode::openNode: could not open the node!");
}
else if (m_xHierarchyAccess.is())
{
- if (!::cppu::extractInterface(xNode, m_xHierarchyAccess->getByHierarchicalName(_rPath)))
+ xNode.set(
+ m_xHierarchyAccess->getByHierarchicalName(_rPath),
+ css::uno::UNO_QUERY);
+ if (!xNode.is())
OSL_FAIL("OConfigurationNode::openNode: could not open the node!");
}
if (xNode.is())