diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-23 16:05:50 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-23 16:05:50 +0300 |
commit | b24b605821da1f4581d0a66d98f63effbecf46f6 (patch) | |
tree | 57b61828230ac7b7f2dab364a848011f5dc0405a /protocols/Weather/src/weather_conv.cpp | |
parent | 4f5e18684ec9518657a035164d04e04e87fca5a0 (diff) |
Weather: first version that works
Diffstat (limited to 'protocols/Weather/src/weather_conv.cpp')
-rw-r--r-- | protocols/Weather/src/weather_conv.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/protocols/Weather/src/weather_conv.cpp b/protocols/Weather/src/weather_conv.cpp index 7b1897834e..9cb2677099 100644 --- a/protocols/Weather/src/weather_conv.cpp +++ b/protocols/Weather/src/weather_conv.cpp @@ -444,7 +444,7 @@ void ConvertBackslashes(char *str) // dis = original string // return value = the modified string with space -> _T("%20" -char *GetSearchStr(char *dis) +char* GetSearchStr(char *dis) { char *pstr = dis; size_t len = mir_strlen(dis); @@ -466,7 +466,7 @@ char *GetSearchStr(char *dis) // dis = the string to parse // return value = the parsed string -wchar_t *GetDisplay(WEATHERINFO *w, const wchar_t *dis, wchar_t *str) +wchar_t* GetDisplay(WEATHERINFO *w, const wchar_t *dis, wchar_t *str) { wchar_t lpzDate[32], chr; char name[256], temp[2]; @@ -547,13 +547,6 @@ wchar_t *GetDisplay(WEATHERINFO *w, const wchar_t *dis, wchar_t *str) return str; } -wchar_t svcReturnText[MAX_TEXT_SIZE]; -INT_PTR GetDisplaySvcFunc(WPARAM wParam, LPARAM lParam) -{ - WEATHERINFO winfo = LoadWeatherInfo(wParam); - return (INT_PTR)GetDisplay(&winfo, (wchar_t*)lParam, svcReturnText); -} - ///////////////////////////////////////////////////////////////////////////////////////// // get service data module internal name // mod/id <- the mod part |