summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_conv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src/weather_conv.cpp')
-rw-r--r--protocols/Weather/src/weather_conv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Weather/src/weather_conv.cpp b/protocols/Weather/src/weather_conv.cpp
index e7f495e5f4..2c29e1865f 100644
--- a/protocols/Weather/src/weather_conv.cpp
+++ b/protocols/Weather/src/weather_conv.cpp
@@ -404,14 +404,14 @@ void TrimString(char *str)
memmove(str, str + start, len - start + 1);
}
-void TrimString(WCHAR *str)
+void TrimString(wchar_t *str)
{
size_t len, start;
len = mir_wstrlen(str);
while (len && (unsigned char)str[len - 1] <= ' ') str[--len] = 0;
for (start = 0; (unsigned char)str[start] <= ' ' && str[start]; start++);
- memmove(str, str + start, (len - start + 1) * sizeof(WCHAR));
+ memmove(str, str + start, (len - start + 1) * sizeof(wchar_t));
}
// convert \t to tab and \n to linefeed