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/dom/util/ziptool.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/dom/util/ziptool.cpp') 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 &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 &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); -- cgit v1.2.3