summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-17 12:05:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-17 12:21:37 +0000
commite97191f39dc3765a723ce7d42ceda421f5a41461 (patch)
treea96f389ecb96676436ceab360c320b60b9536003 /sdext
parent7cded3aad7190b9542859647f99b7451bb25df45 (diff)
WaE: unreachable code
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterAccessibility.cxx11
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