diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-30 12:16:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-30 14:19:05 +0100 |
commit | f1c705da1642e4f637be3610856e5b10e509aa4e (patch) | |
tree | c19ca83bc92f854a912b6705a6536763b00c7cf8 /sw | |
parent | b89069a863431538612b1bbb6b44cf9126d231a5 (diff) |
coverity#704912 Unchecked dynamic_cast
Change-Id: I1383d63d3513dfcb8763857a49742a756836987f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/pagechg.cxx | 2 |
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(); } |