diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-02 08:36:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 65ca57a447bae97714b1b32aa2df5705215a95ad (patch) | |
tree | 9b62f8fb4a890d5fcba13abc446b3244e9c5232f /vcl/source/filter/wmf/enhwmf.cxx | |
parent | a881fd7e66294ada222e1d618a7d47a0549a2342 (diff) |
convert LineStyle to scoped enum
Change-Id: I30cfa5a0649b806604c443f55683d1f2a430983d
Diffstat (limited to 'vcl/source/filter/wmf/enhwmf.cxx')
-rw-r--r-- | vcl/source/filter/wmf/enhwmf.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index c8f72a909d1c..9b3a42a8b47e 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -918,33 +918,33 @@ bool EnhWMFReader::ReadEnhWMF() switch( nStyle & PS_STYLE_MASK ) { case PS_DASHDOTDOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 2 ); break; case PS_DASHDOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 1 ); break; case PS_DOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 0 ); aLineInfo.SetDotCount( 1 ); break; case PS_DASH : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 0 ); break; case PS_NULL : bTransparent = true; - aLineInfo.SetStyle( LINE_NONE ); + aLineInfo.SetStyle( LineStyle::NONE ); break; case PS_INSIDEFRAME : case PS_SOLID : default : - aLineInfo.SetStyle( LINE_SOLID ); + aLineInfo.SetStyle( LineStyle::Solid ); } switch( nStyle & PS_ENDCAP_STYLE_MASK ) { @@ -1007,34 +1007,34 @@ bool EnhWMFReader::ReadEnhWMF() switch( nStyle & PS_STYLE_MASK ) { case PS_DASHDOTDOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 2 ); break; case PS_DASHDOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 1 ); break; case PS_DOT : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 0 ); aLineInfo.SetDotCount( 1 ); break; case PS_DASH : - aLineInfo.SetStyle( LINE_DASH ); + aLineInfo.SetStyle( LineStyle::Dash ); aLineInfo.SetDashCount( 1 ); aLineInfo.SetDotCount( 0 ); break; case PS_NULL : bTransparent = true; - aLineInfo.SetStyle( LINE_NONE ); + aLineInfo.SetStyle( LineStyle::NONE ); break; case PS_INSIDEFRAME : case PS_SOLID : default : - aLineInfo.SetStyle( LINE_SOLID ); + aLineInfo.SetStyle( LineStyle::Solid ); } switch( nStyle & PS_ENDCAP_STYLE_MASK ) { |