summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_addstn.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-16 15:08:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-16 15:08:49 +0000
commit2e4abd268c71f15bcf73c49a5005f128ffd8ee96 (patch)
tree92624c24bafa4a02eb7e7fd2501a988e385ffab3 /plugins/Weather/src/weather_addstn.cpp
parent769714b0aa9606e0d94a9d88c7c3ee3064792e4a (diff)
shortened typedefs for string buffers:
MCBuf -> mir_ptr<char> MTBuf -> mir_ptr<TCHAR> MWBuf -> mir_ptr<WCHAR> git-svn-id: http://svn.miranda-ng.org/main/trunk@4680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_addstn.cpp')
-rw-r--r--plugins/Weather/src/weather_addstn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Weather/src/weather_addstn.cpp b/plugins/Weather/src/weather_addstn.cpp
index 08ee90d862..1e7491249a 100644
--- a/plugins/Weather/src/weather_addstn.cpp
+++ b/plugins/Weather/src/weather_addstn.cpp
@@ -308,8 +308,8 @@ int NameSearchProc(TCHAR *name, const int searchId, WINAMESEARCH *sData, TCHAR *
// replace spaces with %20
char loc[256];
- mir_ptr<char> szSearchName( mir_utf8encodeT(name));
- wsprintfA(loc, sData->SearchURL, mir_ptr<char>( mir_urlEncode(szSearchName)));
+ MCBuf szSearchName( mir_utf8encodeT(name));
+ wsprintfA(loc, sData->SearchURL, MCBuf( mir_urlEncode(szSearchName)));
if (InternetDownloadFile(loc, NULL, &szData) == 0) {
TCHAR* szInfo = szData;
search = _tcsstr(szInfo, sData->NotFoundStr); // determine if data is available