summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-04 12:02:54 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit87ee6c044d79978d2121087f5e1a10f417adf9c7 (patch)
tree5b1747d9d625da42a47c3ff0635f0124de0cd511 /svx
parent04a8ba2084950f998d791edad29739c124c8c4b8 (diff)
convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpage.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 59def840f466..cbac68bbfbbc 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -1353,7 +1353,7 @@ void SdrPage::SetOrientation(Orientation eOri)
// square: handle like portrait format
Size aSiz(GetSize());
if (aSiz.Width()!=aSiz.Height()) {
- if ((eOri==ORIENTATION_PORTRAIT) == (aSiz.Width()>aSiz.Height())) {
+ if ((eOri==Orientation::Portrait) == (aSiz.Width()>aSiz.Height())) {
SetSize(Size(aSiz.Height(),aSiz.Width()));
}
}
@@ -1362,9 +1362,9 @@ void SdrPage::SetOrientation(Orientation eOri)
Orientation SdrPage::GetOrientation() const
{
// square: handle like portrait format
- Orientation eRet=ORIENTATION_PORTRAIT;
+ Orientation eRet=Orientation::Portrait;
Size aSiz(GetSize());
- if (aSiz.Width()>aSiz.Height()) eRet=ORIENTATION_LANDSCAPE;
+ if (aSiz.Width()>aSiz.Height()) eRet=Orientation::Landscape;
return eRet;
}