summaryrefslogtreecommitdiffstats
path: root/src/dom/util/ziptool.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2007-10-11 13:46:40 +0000
committerpjrm <pjrm@users.sourceforge.net>2007-10-11 13:46:40 +0000
commitc3899dac849638c01931b598ff7e4a4c4a484d93 (patch)
tree35e8e08fcf85ab1db7750a79509f900eb9baee2e /src/dom/util/ziptool.cpp
parentFix g_return_if_fail failure: It can validly happen that fit_canvas_to_select... (diff)
downloadinkscape-c3899dac849638c01931b598ff7e4a4c4a484d93.tar.gz
inkscape-c3899dac849638c01931b598ff7e4a4c4a484d93.zip
Avoid string literal char* warnings on g++-4.2: change some functions to take char const* rather than char*.
(bzr r3874)
Diffstat (limited to 'src/dom/util/ziptool.cpp')
-rw-r--r--src/dom/util/ziptool.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp
index fc4c7bad4..a51d12986 100644
--- a/src/dom/util/ziptool.cpp
+++ b/src/dom/util/ziptool.cpp
@@ -231,7 +231,7 @@ private:
/**
*
*/
- void error(char *fmt, ...)
+ void error(char const *fmt, ...)
#ifdef G_GNUC_PRINTF
G_GNUC_PRINTF(2, 3)
#endif
@@ -240,7 +240,7 @@ private:
/**
*
*/
- void trace(char *fmt, ...)
+ void trace(char const *fmt, ...)
#ifdef G_GNUC_PRINTF
G_GNUC_PRINTF(2, 3)
#endif
@@ -314,7 +314,7 @@ Inflater::~Inflater()
/**
*
*/
-void Inflater::error(char *fmt, ...)
+void Inflater::error(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -327,7 +327,7 @@ void Inflater::error(char *fmt, ...)
/**
*
*/
-void Inflater::trace(char *fmt, ...)
+void Inflater::trace(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -844,13 +844,13 @@ public:
private:
//debug messages
- void error(char *fmt, ...)
+ void error(char const *fmt, ...)
#ifdef G_GNUC_PRINTF
G_GNUC_PRINTF(2, 3)
#endif
;
- void trace(char *fmt, ...)
+ void trace(char const *fmt, ...)
#ifdef G_GNUC_PRINTF
G_GNUC_PRINTF(2, 3)
#endif
@@ -982,7 +982,7 @@ bool Deflater::deflate(std::vector<unsigned char> &dest,
/**
* Print error messages
*/
-void Deflater::error(char *fmt, ...)
+void Deflater::error(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -995,7 +995,7 @@ void Deflater::error(char *fmt, ...)
/**
* Print trace messages
*/
-void Deflater::trace(char *fmt, ...)
+void Deflater::trace(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -1427,7 +1427,7 @@ GzipFile::~GzipFile()
/**
* Print error messages
*/
-void GzipFile::error(char *fmt, ...)
+void GzipFile::error(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -1440,7 +1440,7 @@ void GzipFile::error(char *fmt, ...)
/**
* Print trace messages
*/
-void GzipFile::trace(char *fmt, ...)
+void GzipFile::trace(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -2172,7 +2172,7 @@ std::vector<ZipEntry *> &ZipFile::getEntries()
//# M E S S A G E S
//#####################################
-void ZipFile::error(char *fmt, ...)
+void ZipFile::error(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -2182,7 +2182,7 @@ void ZipFile::error(char *fmt, ...)
va_end(args);
}
-void ZipFile::trace(char *fmt, ...)
+void ZipFile::trace(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);