Kaydet (Commit) 2fbf95f5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

warning C4702: unreachable code

...and simplification

Change-Id: I652da35312522f452276116df11e548ba9231b53
üst e40bae2d
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment