diff --git a/src/zapit/include/zapit/client/zapittools.h b/src/zapit/include/zapit/client/zapittools.h index 9327124f0..487d2a488 100644 --- a/src/zapit/include/zapit/client/zapittools.h +++ b/src/zapit/include/zapit/client/zapittools.h @@ -31,6 +31,6 @@ namespace ZapitTools std::string UTF8_to_Latin1 (const char *); std::string UTF8_to_UTF8XML(const char *); std::string Latin1_to_UTF8 (const char *); -}; +} #endif diff --git a/src/zapit/lib/zapittools.cpp b/src/zapit/lib/zapittools.cpp index 0a3234d7a..a81c2bcef 100644 --- a/src/zapit/lib/zapittools.cpp +++ b/src/zapit/lib/zapittools.cpp @@ -69,13 +69,13 @@ namespace ZapitTools { std::string UTF8_to_UTF8XML(const char * s) { std::string r; - + while ((*s) != 0) { /* cf. http://www.w3.org/TR/xhtml1/dtds.html */ switch (*s) { - case '<': + case '<': r += "<"; break; case '>': @@ -101,7 +101,7 @@ namespace ZapitTools { std::string Latin1_to_UTF8(const char * s) { std::string r; - + while((*s) != 0) { unsigned char c = *s; @@ -117,7 +117,7 @@ namespace ZapitTools { } s++; - } + } return r; } -}; +}