From 15fa9a8a6dbce8619118c9f0cea877fbf903700a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Sep 2013 22:50:50 +0000 Subject: explicit constructors for ptrT git-svn-id: http://svn.miranda-ng.org/main/trunk@6174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Options.cpp | 2 +- plugins/Quotes/src/ImportExport.cpp | 2 +- plugins/SimpleStatusMsg/src/options.cpp | 2 +- plugins/Variables/src/parse_regexp.cpp | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp index bc5be97382..30e06842cf 100644 --- a/plugins/PluginUpdater/src/Options.cpp +++ b/plugins/PluginUpdater/src/Options.cpp @@ -155,7 +155,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA else if ( IsDlgButtonChecked(hwndDlg, IDC_TRUNK)) db_set_s(NULL, MODNAME, "UpdateURL", DEFAULT_UPDATE_URL_TRUNK); else if ( IsDlgButtonChecked(hwndDlg, IDC_TRUNK_SYMBOLS)) { - ptrA oldUrl = db_get_sa(NULL, MODNAME, "UpdateURL"); + ptrA oldUrl( db_get_sa(NULL, MODNAME, "UpdateURL")); if (strcmp(oldUrl, DEFAULT_UPDATE_URL_TRUNK_SYMBOLS)) { opts.bForceRedownload = true; db_set_b(NULL, MODNAME, "ForceRedownload", 1); diff --git a/plugins/Quotes/src/ImportExport.cpp b/plugins/Quotes/src/ImportExport.cpp index 15d72b84fb..be7b4fc974 100644 --- a/plugins/Quotes/src/ImportExport.cpp +++ b/plugins/Quotes/src/ImportExport.cpp @@ -94,7 +94,7 @@ namespace sType = g_pszXmlTypeBlob; if(dbv.pbVal) { - ptrA buf = mir_base64_encode(dbv.pbVal, dbv.cpbVal); + ptrA buf( mir_base64_encode(dbv.pbVal, dbv.cpbVal)); if (buf) { sValue << buf; } diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp index 608da025a6..948bb912e4 100644 --- a/plugins/SimpleStatusMsg/src/options.cpp +++ b/plugins/SimpleStatusMsg/src/options.cpp @@ -137,7 +137,7 @@ static INT_PTR CALLBACK DlgOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L val = db_get_b(NULL, "SimpleStatusMsg", (char *)StatusModeToDbSetting(i, "Flags"), STATUS_DEFAULT); data->status_msg[0].flags[i - ID_STATUS_ONLINE] = val; - ptrT text = db_get_tsa(NULL, "SRAway", StatusModeToDbSetting(i, "Default")); + ptrT text( db_get_tsa(NULL, "SRAway", StatusModeToDbSetting(i, "Default"))); lstrcpyn(data->status_msg[0].msg[i - ID_STATUS_ONLINE], (text == NULL) ? GetDefaultMessage(i) : text, 1024); for (j = 0; j < accounts->count; j++) diff --git a/plugins/Variables/src/parse_regexp.cpp b/plugins/Variables/src/parse_regexp.cpp index 3b8679de6b..2792cf05e5 100644 --- a/plugins/Variables/src/parse_regexp.cpp +++ b/plugins/Variables/src/parse_regexp.cpp @@ -64,9 +64,9 @@ static TCHAR *parseRegExpSubstr(ARGUMENTSINFO *ai) if (ai->argc != 4) return NULL; - ptrA arg1 = mir_t2a(ai->targv[1]); - ptrA arg2 = mir_t2a(ai->targv[2]); - ptrA arg3 = mir_t2a(ai->targv[3]); + ptrA arg1( mir_t2a(ai->targv[1])); + ptrA arg2( mir_t2a(ai->targv[2])); + ptrA arg3( mir_t2a(ai->targv[3])); number = atoi(arg3); if (number < 0) -- cgit v1.2.3