summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/wsfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-03 17:02:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:53:31 +0100
commit51ee91a3ca869be23153a235cbf33d4d20267fce (patch)
treed55ad43d12f82b2960d893a016f67e4f99ac5dd3 /sw/source/core/layout/wsfrm.cxx
parent90db24c33060bcb6db6ef900981c4379cd3074af (diff)
TypedWhichId in sw(1)
Change-Id: If9330b2ea7e40f4775b1edd9611d35c6ddf31a00 Reviewed-on: https://gerrit.libreoffice.org/49185 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r--sw/source/core/layout/wsfrm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index 684e125de95b..4e2eb99438ce 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -399,7 +399,7 @@ void SwSectionFrame::CheckDirection( bool bVert )
{
const SwViewShell *pSh = getRootFrame()->GetCurrShell();
const bool bBrowseMode = pSh && pSh->GetViewOptions()->getBrowseMode();
- CheckDir(static_cast<const SvxFrameDirectionItem&>(pFormat->GetFormatAttr(RES_FRAMEDIR)).GetValue(),
+ CheckDir(pFormat->GetFormatAttr(RES_FRAMEDIR).GetValue(),
bVert, true, bBrowseMode );
}
else
@@ -413,7 +413,7 @@ void SwFlyFrame::CheckDirection( bool bVert )
{
const SwViewShell *pSh = getRootFrame()->GetCurrShell();
const bool bBrowseMode = pSh && pSh->GetViewOptions()->getBrowseMode();
- CheckDir(static_cast<const SvxFrameDirectionItem&>(pFormat->GetFormatAttr(RES_FRAMEDIR)).GetValue(),
+ CheckDir(pFormat->GetFormatAttr(RES_FRAMEDIR).GetValue(),
bVert, false, bBrowseMode );
}
else
@@ -427,7 +427,7 @@ void SwTabFrame::CheckDirection( bool bVert )
{
const SwViewShell *pSh = getRootFrame()->GetCurrShell();
const bool bBrowseMode = pSh && pSh->GetViewOptions()->getBrowseMode();
- CheckDir(static_cast<const SvxFrameDirectionItem&>(pFormat->GetFormatAttr(RES_FRAMEDIR)).GetValue(),
+ CheckDir(pFormat->GetFormatAttr(RES_FRAMEDIR).GetValue(),
bVert, true, bBrowseMode );
}
else