From 6c8178e05e641d8d15c10a94fab64cf7d4011a63 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Sat, 29 Apr 2006 07:48:36 +0000 Subject: remove warnings (bzr r616) --- src/extension/internal/odf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/extension/internal/odf.cpp') diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 1487293bb..27804397d 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -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); -- cgit v1.2.3