summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-18 13:54:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-18 21:50:43 +0200
commitd0e77848853d60f01308df309d73fa2d7389d0ce (patch)
tree19f377dfcf600736cf960aea025f0b6a73cc3a31 /svgio/source
parentca341bbe44169135958d7a0b28feaed7d1aa11d3 (diff)
Turn SvgMarkerNode::MarkerUnits into scoped enum
...to avoid -Werror,-Wshadow from Clang trunk with <https://reviews.llvm.org/D52400> "Improve -Wshadow warnings with enumerators", warning about shadowing of userSpaceOnUse in enum SvgUnits in svgio/inc/svgtools.hxx Change-Id: Ie1438e6ad0f73c73ad643157e5f8366a6e3f6851 Reviewed-on: https://gerrit.libreoffice.org/61933 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svgio/source')
-rw-r--r--svgio/source/svgreader/svgmarkernode.cxx6
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx
index 2e33fa640c50..35ac4fff1662 100644
--- a/svgio/source/svgreader/svgmarkernode.cxx
+++ b/svgio/source/svgreader/svgmarkernode.cxx
@@ -32,7 +32,7 @@ namespace svgio
maSvgAspectRatio(),
maRefX(0),
maRefY(0),
- maMarkerUnits(strokeWidth),
+ maMarkerUnits(MarkerUnits::strokeWidth),
maMarkerWidth(3),
maMarkerHeight(3),
mfAngle(0.0),
@@ -106,11 +106,11 @@ namespace svgio
{
if(aContent.startsWith("strokeWidth"))
{
- setMarkerUnits(strokeWidth);
+ setMarkerUnits(MarkerUnits::strokeWidth);
}
else if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
- setMarkerUnits(userSpaceOnUse);
+ setMarkerUnits(MarkerUnits::userSpaceOnUse);
}
}
break;
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 3bd5dac3c483..7780d8aa4e5f 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -832,7 +832,7 @@ namespace svgio
{
double fTargetWidth(rMarker.getMarkerWidth().isSet() ? rMarker.getMarkerWidth().solve(mrOwner, xcoordinate) : 3.0);
double fTargetHeight(rMarker.getMarkerHeight().isSet() ? rMarker.getMarkerHeight().solve(mrOwner, xcoordinate) : 3.0);
- const bool bStrokeWidth(SvgMarkerNode::strokeWidth == rMarker.getMarkerUnits());
+ const bool bStrokeWidth(SvgMarkerNode::MarkerUnits::strokeWidth == rMarker.getMarkerUnits());
const double fStrokeWidth(getStrokeWidth().isSet() ? getStrokeWidth().solve(mrOwner) : 1.0);
if(bStrokeWidth)