summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-30 12:16:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-30 14:19:05 +0100
commitf1c705da1642e4f637be3610856e5b10e509aa4e (patch)
treec19ca83bc92f854a912b6705a6536763b00c7cf8 /sw
parentb89069a863431538612b1bbb6b44cf9126d231a5 (diff)
coverity#704912 Unchecked dynamic_cast
Change-Id: I1383d63d3513dfcb8763857a49742a756836987f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/pagechg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index f1307bcdd443..4808dd545e6e 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -2208,7 +2208,7 @@ bool SwRootFrm::IsLeftToRightViewLayout() const
// #i88036#
// Only ask a non-empty page frame for its layout direction
const SwPageFrm& rPage =
- dynamic_cast<const SwPageFrm*>(Lower())->GetFormatPage();
+ dynamic_cast<const SwPageFrm&>(*Lower()).GetFormatPage();
return !rPage.IsRightToLeft() && !rPage.IsVertical();
}