From 2fbf95f5efb0e7e2781fa8546845a084721ee4e7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 Dec 2013 09:32:57 +0100 Subject: warning C4702: unreachable code ...and simplification Change-Id: I652da35312522f452276116df11e548ba9231b53 --- sc/source/ui/Accessibility/AccessibleTableBase.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sc/source/ui/Accessibility') diff --git a/sc/source/ui/Accessibility/AccessibleTableBase.cxx b/sc/source/ui/Accessibility/AccessibleTableBase.cxx index 5a74dcf5af72..9ce33bed2a34 100644 --- a/sc/source/ui/Accessibility/AccessibleTableBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleTableBase.cxx @@ -65,19 +65,15 @@ void SAL_CALL ScAccessibleTableBase::disposing() uno::Any SAL_CALL ScAccessibleTableBase::queryInterface( uno::Type const & rType ) throw (uno::RuntimeException) { - uno::Any aRet; if ( rType == ::getCppuType((uno::Reference *)0) ) { - uno::Reference xThis( this ); - aRet <<= xThis; - return aRet; + return uno::Any(uno::Reference(this)); } else { uno::Any aAny (ScAccessibleTableBaseImpl::queryInterface(rType)); return aAny.hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType); } - return aRet; } void SAL_CALL ScAccessibleTableBase::acquire() -- cgit