diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-17 12:05:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-17 12:21:37 +0000 |
commit | e97191f39dc3765a723ce7d42ceda421f5a41461 (patch) | |
tree | a96f389ecb96676436ceab360c320b60b9536003 /sdext | |
parent | 7cded3aad7190b9542859647f99b7451bb25df45 (diff) |
WaE: unreachable code
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterAccessibility.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx index dcafc7d137c6..18ba0e737607 100644 --- a/sdext/source/presenter/PresenterAccessibility.cxx +++ b/sdext/source/presenter/PresenterAccessibility.cxx @@ -1614,16 +1614,9 @@ sal_Unicode SAL_CALL PresenterAccessible::AccessibleParagraph::getCharacter (sal { ThrowIfDisposed(); - if (mpParagraph) - return mpParagraph->GetCharacter(nIndex); - else - { + if (!mpParagraph) ThrowException("no text support in current mode", ET_IndexOutOfBounds); - // The method above throws an exception and the following line is - // never reached. But there is at least one compiler that can not - // detect this and we need the return to make it happy. - return sal_Unicode(); - } + return mpParagraph->GetCharacter(nIndex); } Sequence<css::beans::PropertyValue> SAL_CALL |