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/svglinenode.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/svglinenode.cxx')
-rw-r--r-- | svgio/source/svgreader/svglinenode.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svgio/source/svgreader/svglinenode.cxx b/svgio/source/svgreader/svglinenode.cxx index e0064764017d..155da1ee9a2d 100644 --- a/svgio/source/svgreader/svglinenode.cxx +++ b/svgio/source/svgreader/svglinenode.cxx @@ -26,7 +26,7 @@ namespace svgio::svgreader SvgLineNode::SvgLineNode( SvgDocument& rDocument, SvgNode* pParent) - : SvgNode(SVGTokenLine, rDocument, pParent), + : SvgNode(SVGToken::Line, rDocument, pParent), maSvgStyleAttributes(*this), maX1(0), maY1(0), @@ -55,12 +55,12 @@ namespace svgio::svgreader // parse own switch(aSVGToken) { - case SVGTokenStyle: + case SVGToken::Style: { readLocalCssStyle(aContent); break; } - case SVGTokenX1: + case SVGToken::X1: { SvgNumber aNum; @@ -70,7 +70,7 @@ namespace svgio::svgreader } break; } - case SVGTokenY1: + case SVGToken::Y1: { SvgNumber aNum; @@ -80,7 +80,7 @@ namespace svgio::svgreader } break; } - case SVGTokenX2: + case SVGToken::X2: { SvgNumber aNum; @@ -90,7 +90,7 @@ namespace svgio::svgreader } break; } - case SVGTokenY2: + case SVGToken::Y2: { SvgNumber aNum; @@ -100,7 +100,7 @@ namespace svgio::svgreader } break; } - case SVGTokenTransform: + case SVGToken::Transform: { const basegfx::B2DHomMatrix aMatrix(readTransform(aContent, *this)); |