diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-04-28 13:08:07 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-04-30 12:20:52 +0200 |
commit | 91daf2c6b1661f27df6ee41f7395ed0fcb677cf0 (patch) | |
tree | 4a3109b73322be255f1afe36f181136251823fb1 /svgio/source/svgreader/svgmasknode.cxx | |
parent | 560c9ec9e27e771d61f1396a1c87dd38e29099c1 (diff) |
svgio: change SVGToken enum to enum class
Change-Id: Ic2618c91b1793463b7ce0a42ec1db100d11acfa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114898
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svgio/source/svgreader/svgmasknode.cxx')
-rw-r--r-- | svgio/source/svgreader/svgmasknode.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx index 543b8eede681..e5573a77928a 100644 --- a/svgio/source/svgreader/svgmasknode.cxx +++ b/svgio/source/svgreader/svgmasknode.cxx @@ -32,7 +32,7 @@ namespace svgio::svgreader SvgMaskNode::SvgMaskNode( SvgDocument& rDocument, SvgNode* pParent) - : SvgNode(SVGTokenMask, rDocument, pParent), + : SvgNode(SVGToken::Mask, rDocument, pParent), maSvgStyleAttributes(*this), maX(SvgNumber(-10.0, Unit_percent, true)), maY(SvgNumber(-10.0, Unit_percent, true)), @@ -63,12 +63,12 @@ namespace svgio::svgreader // parse own switch(aSVGToken) { - case SVGTokenStyle: + case SVGToken::Style: { readLocalCssStyle(aContent); break; } - case SVGTokenX: + case SVGToken::X: { SvgNumber aNum; @@ -78,7 +78,7 @@ namespace svgio::svgreader } break; } - case SVGTokenY: + case SVGToken::Y: { SvgNumber aNum; @@ -88,7 +88,7 @@ namespace svgio::svgreader } break; } - case SVGTokenWidth: + case SVGToken::Width: { SvgNumber aNum; @@ -101,7 +101,7 @@ namespace svgio::svgreader } break; } - case SVGTokenHeight: + case SVGToken::Height: { SvgNumber aNum; @@ -114,7 +114,7 @@ namespace svgio::svgreader } break; } - case SVGTokenTransform: + case SVGToken::Transform: { const basegfx::B2DHomMatrix aMatrix(readTransform(aContent, *this)); @@ -124,7 +124,7 @@ namespace svgio::svgreader } break; } - case SVGTokenMaskUnits: + case SVGToken::MaskUnits: { if(!aContent.isEmpty()) { @@ -139,7 +139,7 @@ namespace svgio::svgreader } break; } - case SVGTokenMaskContentUnits: + case SVGToken::MaskContentUnits: { if(!aContent.isEmpty()) { |