From c3899dac849638c01931b598ff7e4a4c4a484d93 Mon Sep 17 00:00:00 2001 From: Peter Moulder Date: Thu, 11 Oct 2007 13:46:40 +0000 Subject: Avoid string literal char* warnings on g++-4.2: change some functions to take char const* rather than char*. (bzr r3874) --- src/extension/internal/odf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/extension') diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index e233515c9..58d19be32 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -884,12 +884,12 @@ int SingularValueDecomposition::rank() /** * Get the value of a node/attribute pair */ -static Glib::ustring getAttribute( Inkscape::XML::Node *node, char *attrName) +static Glib::ustring getAttribute( Inkscape::XML::Node *node, char const *attrName) { Glib::ustring val; - char *valstr = (char *)node->attribute(attrName); + char const *valstr = node->attribute(attrName); if (valstr) - val = (const char *)valstr; + val = valstr; return val; } @@ -1175,7 +1175,7 @@ bool OdfOutput::writeManifest(ZipFile &zf) else if (ext == ".jpg") outs.printf("image/jpeg"); outs.printf("\" manifest:full-path=\""); - outs.printf((char *)newName.c_str()); + outs.printf(newName.c_str()); outs.printf("\"/>\n"); } outs.printf("\n"); -- cgit v1.2.3