diff options
Diffstat (limited to 'sd/source/ui/unoidl/unosrch.cxx')
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index d4c65435fd1a..7be7281816bf 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -789,14 +789,11 @@ sal_Int32 SAL_CALL SdUnoFindAllAccess::getCount() uno::Any SAL_CALL SdUnoFindAllAccess::getByIndex( sal_Int32 Index ) { - uno::Any aAny; - if( Index < 0 || Index >= getCount() ) throw lang::IndexOutOfBoundsException(); - const uno::Reference< uno::XInterface > *pRefs = maSequence.getConstArray(); - if(pRefs) - aAny <<= pRefs[ Index ]; + uno::Any aAny; + aAny <<= maSequence[Index]; return aAny; } |