diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-06 14:48:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-13 17:45:57 +0200 |
commit | af5ebbf7835441c767f91a620f109ee6722e57bd (patch) | |
tree | c72b2a1ddb5aa0a0a369be7babd516a5592d5fac /vcl/source/gdi/gdimetafiletools.cxx | |
parent | 1156d11ef0bb2bc3d71ae9299656db4fed66f073 (diff) |
create a macro library for implementing bit-flags types
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>,
changed from a macro- to a template-based solution. (Unfortunately MSVC 2012
does not support explicit conversion operators. Worked around that with
explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and
SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a
baseline that requires unconditional support for them.)
Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
Diffstat (limited to 'vcl/source/gdi/gdimetafiletools.cxx')
-rw-r--r-- | vcl/source/gdi/gdimetafiletools.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/gdimetafiletools.cxx b/vcl/source/gdi/gdimetafiletools.cxx index d7ea6092a859..963592b9853f 100644 --- a/vcl/source/gdi/gdimetafiletools.cxx +++ b/vcl/source/gdi/gdimetafiletools.cxx @@ -371,12 +371,12 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) aPushFlags.push_back(nFlags); - if(nFlags & PUSH_CLIPREGION) + if(nFlags & PushFlags::CLIPREGION) { aClips.push_back(aClips.back()); } - if(nFlags & PUSH_MAPMODE) + if(nFlags & PushFlags::MAPMODE) { aMapModes.push_back(aMapModes.back()); } @@ -391,7 +391,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) const PushFlags nFlags(aPushFlags.back()); aPushFlags.pop_back(); - if(nFlags & PUSH_CLIPREGION) + if(nFlags & PushFlags::CLIPREGION) { if(aClips.size() > 1) { @@ -403,7 +403,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) } } - if(nFlags & PUSH_MAPMODE) + if(nFlags & PushFlags::MAPMODE) { if(aMapModes.size() > 1) { |