summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-04 19:34:19 +0200
committerNoel Grandin <noel@peralex.com>2015-01-09 09:08:35 +0200
commit278b400511a76a9be5e0afc0377a9c69823cc230 (patch)
treefaf2573bf0f0e57817dcd8cac9f9b36989402710 /sw/source
parent5c5edaef89e953d260501678c3d62c47ad9763ac (diff)
fdo#84938: convert POLY_OPTIMIZE_ #defines to 'enum class'
Change-Id: I163bd3f521473c5357c23c3ce4978f984be7b6fe
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/fly.cxx2
-rw-r--r--sw/source/core/unocore/unoframe.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 80773d3f9b0e..ddec469ad49a 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -2529,7 +2529,7 @@ bool SwFlyFrm::GetContour( tools::PolyPolygon& rContour,
if( !aClip.Height() )
aClip.Height( 1 );
rContour.Clip( aClip.SVRect() );
- rContour.Optimize(POLY_OPTIMIZE_CLOSE);
+ rContour.Optimize(PolyOptimizeFlags::CLOSE);
bRet = true;
}
}
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 1db4715b4f9a..123af06e5d17 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1450,7 +1450,7 @@ void SwXFrame::setPropertyValue(const :: OUString& rPropertyName, const :: uno::
aSet.SetPoint(aPoint, (sal_uInt16)j);
}
// Close polygon if it isn't closed already.
- aSet.Optimize( POLY_OPTIMIZE_CLOSE );
+ aSet.Optimize( PolyOptimizeFlags::CLOSE );
aPoly.Insert( aSet );
}
pNoTxt->SetContourAPI( &aPoly );