diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-21 11:53:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-22 08:29:29 +0200 |
commit | 4af6c0948be47d7816eb1b6f2137b70aba639f0d (patch) | |
tree | 3965a1709f531229a6faaeef2e9d4026a30332b8 /framework/source/fwi | |
parent | 7b45044fd14661202c658923842dd629cf52961c (diff) |
loplugin:flatten in filter..i18npool
Change-Id: I9024b8b614a4de83a4d927e1918f6d4904a7fccb
Reviewed-on: https://gerrit.libreoffice.org/42592
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/fwi')
-rw-r--r-- | framework/source/fwi/uielement/constitemcontainer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx index 811e33ba89cb..efe3167c81a9 100644 --- a/framework/source/fwi/uielement/constitemcontainer.cxx +++ b/framework/source/fwi/uielement/constitemcontainer.cxx @@ -204,10 +204,9 @@ sal_Int32 SAL_CALL ConstItemContainer::getCount() Any SAL_CALL ConstItemContainer::getByIndex( sal_Int32 Index ) { - if ( sal_Int32( m_aItemVector.size()) > Index ) - return makeAny( m_aItemVector[Index] ); - else + if ( sal_Int32( m_aItemVector.size()) <= Index ) throw IndexOutOfBoundsException( OUString(), static_cast<OWeakObject *>(this) ); + return makeAny( m_aItemVector[Index] ); } // XPropertySet |