Code

remove warnings
authorishmal <ishmal@users.sourceforge.net>
Sat, 29 Apr 2006 07:48:36 +0000 (07:48 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sat, 29 Apr 2006 07:48:36 +0000 (07:48 +0000)
src/extension/internal/odf.cpp

index 1487293bbcf9d18faeddc5ddf0db1021be9c26bf..27804397df2624eb1e42696c03982fec66efe52a 100644 (file)
@@ -1019,7 +1019,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node)
                 {
                 char buf[64];
                 snprintf(buf, 63, "Pictures/image%d%s",
-                    imageTable.size(), ext.c_str());
+                    (int)imageTable.size(), ext.c_str());
                 std::string newName = buf;
                 imageTable[oldName] = newName;
                 std::string comment = "old name was: ";
@@ -1117,7 +1117,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node)
             if (!gradientMatch)
                 {
                 char buf[16];
-                snprintf(buf, 15, "gradient%d", gradientTable.size());
+                snprintf(buf, 15, "gradient%d", (int)gradientTable.size());
                 std::string gradientName = buf;
                 gi.name = gradientName;
                 gradientTable.push_back(gi);
@@ -1166,7 +1166,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node)
             if (!styleMatch)
                 {
                 char buf[16];
-                snprintf(buf, 15, "style%d", styleTable.size());
+                snprintf(buf, 15, "style%d", (int)styleTable.size());
                 std::string styleName = buf;
                 si.name = styleName;
                 styleTable.push_back(si);