summaryrefslogtreecommitdiff
path: root/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/devtools/ObjectInspectorTreeHandler.cxx')
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 4d6d1bdad7bc..cbf5640abd5a 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -276,12 +276,7 @@ protected:
uno::Reference<uno::XInterface> getObjectFromAny()
{
- uno::Reference<uno::XInterface> xInterface;
- if (maAny.hasValue() && maAny.getValueType().getTypeClass() == uno::TypeClass_INTERFACE)
- {
- xInterface = uno::Reference<uno::XInterface>(maAny, uno::UNO_QUERY);
- }
- return xInterface;
+ return uno::Reference<uno::XInterface>(maAny, uno::UNO_QUERY);
}
ObjectInspectorNodeInterface* createNodeObjectForAny(OUString const& rName, uno::Any& rAny);