diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-24 12:06:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-24 12:07:26 +0300 |
commit | c7f83feb90b7bde9e3609795a749ca3bf2c0d02c (patch) | |
tree | eb32f87b325c1e2ffbbb0a3b2087a1d08b63866e | |
parent | 5d0051efb99c6cbd0dc4dd655a71e7435159f6bc (diff) |
Use static_cast instead of C-style cast
Makes it more obvious to the code reader that nothing wrong is going on (or
the compiler would have complained).
Change-Id: I2ab420ffeb71f5c0b68e1b7db039cb9cde6af801
-rw-r--r-- | sw/source/core/layout/trvlfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index 80da5152f509..1be599eb7aa3 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -1800,7 +1800,7 @@ sal_uInt16 SwFrm::GetVirtPageNum() const return 0; sal_uInt16 nPhyPage = pPage->GetPhyPageNum(); - if ( !((SwRootFrm*)pPage->GetUpper())->IsVirtPageNum() ) + if ( !(static_cast<const SwRootFrm*>(pPage->GetUpper()))->IsVirtPageNum() ) return nPhyPage; //Search the nearest section using the virtual page number. |