summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-01 15:48:15 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commita881fd7e66294ada222e1d618a7d47a0549a2342 (patch)
treecb928eb75f73e36ec3c93a44f2901617476e7fc8 /test
parent8c5d90adaf1813c8f3a65487044b8fbe80f8bc85 (diff)
convert RasterOp to scoped enum
Change-Id: I136423c105316c9b5b18e64d04a248fd7ac5590b
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index 4e926df2d9fe..f1e2dd059fc1 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -85,11 +85,11 @@ OUString convertRopToString(RasterOp eRop)
{
switch (eRop)
{
- case ROP_OVERPAINT: return OUString("overpaint");
- case ROP_XOR: return OUString("xor");
- case ROP_0: return OUString("0");
- case ROP_1: return OUString("1");
- case ROP_INVERT: return OUString("invert");
+ case RasterOp::OverPaint: return OUString("overpaint");
+ case RasterOp::Xor: return OUString("xor");
+ case RasterOp::N0: return OUString("0");
+ case RasterOp::N1: return OUString("1");
+ case RasterOp::Invert: return OUString("invert");
}
return OUString();
}
@@ -335,7 +335,7 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter)
MetaRasterOpAction* pMetaRasterOpAction = static_cast<MetaRasterOpAction*>(pAction);
rWriter.startElement(sCurrentElementTag);
- if (pMetaRasterOpAction->GetRasterOp() != ROP_OVERPAINT)
+ if (pMetaRasterOpAction->GetRasterOp() != RasterOp::OverPaint)
{
rWriter.attribute("operation", convertRopToString(pMetaRasterOpAction->GetRasterOp()));
}