summaryrefslogtreecommitdiffstats
path: root/src/dom/svgimpl.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-11-12 20:32:29 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-11-12 20:32:29 +0000
commit6cc48d391ad4496d9aeb17978ac5c049c6eb3203 (patch)
treefb23048f52c0b76af468d9e8c2a50cf03e4aa80d /src/dom/svgimpl.cpp
parentfixed transformation bug (diff)
downloadinkscape-6cc48d391ad4496d9aeb17978ac5c049c6eb3203.tar.gz
inkscape-6cc48d391ad4496d9aeb17978ac5c049c6eb3203.zip
fix type. note that a real fix should get rid of all the macros like SVG_ZOOM_AND_PAN and replace it with enum...
(bzr r12800)
Diffstat (limited to 'src/dom/svgimpl.cpp')
-rw-r--r--src/dom/svgimpl.cpp8
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++)