diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-11-12 23:54:23 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-11-12 23:54:23 +0000 |
| commit | 072f4e717d42b6a70532fb755b8e31a54cd313b6 (patch) | |
| tree | c26166b179735d68a965a6be90ae320133afe012 /src/dom/svgimpl.cpp | |
| parent | Update to trunk (diff) | |
| parent | fix C++11 compilation. There A LOT of const_casts in this file... :-( (diff) | |
| download | inkscape-072f4e717d42b6a70532fb755b8e31a54cd313b6.tar.gz inkscape-072f4e717d42b6a70532fb755b8e31a54cd313b6.zip | |
Update to trunk
(bzr r11950.1.199)
Diffstat (limited to 'src/dom/svgimpl.cpp')
| -rw-r--r-- | src/dom/svgimpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dom/svgimpl.cpp b/src/dom/svgimpl.cpp index 4372e1b87..0f420dc87 100644 --- a/src/dom/svgimpl.cpp +++ b/src/dom/svgimpl.cpp @@ -81,7 +81,7 @@ static double s2d(const DOMString &s) typedef struct { const char *name; - int type; + unsigned int type; } SVGTableEntry; @@ -119,7 +119,7 @@ SVGTableEntry interfaceTable[] = { "SVGUnitTypes", SVG_UNIT_TYPES }, { "SVGURIReference", SVG_URI_REFERENCE }, { "SVGViewSpec", SVG_VIEW_SPEC }, - { "SVGZoomAndPan", static_cast<int>(SVG_ZOOM_AND_PAN)} + { "SVGZoomAndPan", SVG_ZOOM_AND_PAN } }; @@ -266,9 +266,9 @@ int svgInterfaceStrToEnum(const char *str) * Return the string corresponding to a given SVG element type enum * Return "unknown" if not found */ -const char *svgInterfaceEnumToStr(int type) +const char *svgInterfaceEnumToStr(unsigned int type) { - if (type < 1 || type > (int)SVG_ZOOM_AND_PAN) + if (type < 1 || type > SVG_ZOOM_AND_PAN) return "unknown"; SVGTableEntry *entry = interfaceTable; for (int i = 0 ; i < SVG_NR_INTERFACES ; i++) |
