summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-03 09:32:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-03 09:32:57 +0100
commit2fbf95f5efb0e7e2781fa8546845a084721ee4e7 (patch)
treeaacd54514c5d9cdf197a71d722156de35624e815
parente40bae2dc347ae6c7e3a9133fcdd78c62192a016 (diff)
warning C4702: unreachable code
...and simplification Change-Id: I652da35312522f452276116df11e548ba9231b53
-rw-r--r--sc/source/ui/Accessibility/AccessibleTableBase.cxx6
1 files changed, 1 insertions, 5 deletions
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<XAccessibleTableSelection> *)0) )
{
- uno::Reference<XAccessibleTableSelection> xThis( this );
- aRet <<= xThis;
- return aRet;
+ return uno::Any(uno::Reference<XAccessibleTableSelection>(this));
}
else
{
uno::Any aAny (ScAccessibleTableBaseImpl::queryInterface(rType));
return aAny.hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType);
}
- return aRet;
}
void SAL_CALL ScAccessibleTableBase::acquire()