diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-02-12 19:33:06 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-02-12 13:30:26 +0100 |
commit | 6ec3623275e5a064e2057f0f1d58b5bd995b5a85 (patch) | |
tree | e9c6d3f3bf0ac26368aee4e477938ebf81c84ed2 /sfx2 | |
parent | d547d76c3bee10447de6fd90185212a177349386 (diff) |
devtools: simplify getObjectFromAny method
Change-Id: I43bba799604683a9d329f3734879d116b4d07102
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110806
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 7 |
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); |