From 08a943fc379c5f8af25128c935e93e6a9d82d136 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Apr 2015 08:56:05 +0200 Subject: Get rid of trivial comphelper::query_interface wrapper Change-Id: I2b9dafd2a34d055dcd8b8c4d894be30dc821d3be --- svx/source/form/fmobj.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svx/source') diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 7d7bd1bfde04..f70af85136de 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -431,7 +431,8 @@ namespace sReturn = sCurrentIndex; // travel up - if (::comphelper::query_interface(Reference< XInterface >(xParent),xChild)) + xChild.set(xParent, css::uno::UNO_QUERY); + if (xChild.is()) xParent = Reference< ::com::sun::star::container::XIndexAccess>(xChild->getParent(), UNO_QUERY); } -- cgit