From 9b119cadd74e1343cad493e8b366e69743a620d0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 21 Dec 2014 09:49:05 +0000 Subject: Quotes: changed warning level to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/WinCtrlHelper.cpp | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'plugins/Quotes/src/WinCtrlHelper.cpp') diff --git a/plugins/Quotes/src/WinCtrlHelper.cpp b/plugins/Quotes/src/WinCtrlHelper.cpp index f9b2e340db..3edd248631 100644 --- a/plugins/Quotes/src/WinCtrlHelper.cpp +++ b/plugins/Quotes/src/WinCtrlHelper.cpp @@ -2,31 +2,31 @@ namespace { - INT_PTR CALLBACK VariableListDlgProc(HWND hWnd,UINT msg,WPARAM wp,LPARAM lp) + INT_PTR CALLBACK VariableListDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { - switch(msg) + switch (msg) { case WM_INITDIALOG: - { - TranslateDialogDefault(hWnd); - const IQuotesProvider* pProvider = reinterpret_cast(lp); - CQuotesProviderVisitorFormatSpecificator visitor; - pProvider->Accept(visitor); + { + TranslateDialogDefault(hWnd); + const IQuotesProvider* pProvider = reinterpret_cast(lp); + CQuotesProviderVisitorFormatSpecificator visitor; + pProvider->Accept(visitor); - tostringstream o; - const CQuotesProviderVisitorFormatSpecificator::TFormatSpecificators& raSpec = visitor.GetSpecificators(); - std::for_each(raSpec.begin(),raSpec.end(), - [&o](const CQuotesProviderVisitorFormatSpecificator::CFormatSpecificator& spec) - { - o << spec.m_sSymbol << _T('\t') << spec.m_sDesc << _T("\r\n"); - }); - ::SetDlgItemText(hWnd,IDC_EDIT_VARIABLE,o.str().c_str()); - } - break; + tostringstream o; + const CQuotesProviderVisitorFormatSpecificator::TFormatSpecificators& raSpec = visitor.GetSpecificators(); + std::for_each(raSpec.begin(), raSpec.end(), + [&o](const CQuotesProviderVisitorFormatSpecificator::CFormatSpecificator& spec) + { + o << spec.m_sSymbol << _T('\t') << spec.m_sDesc << _T("\r\n"); + }); + ::SetDlgItemText(hWnd, IDC_EDIT_VARIABLE, o.str().c_str()); + } + break; case WM_COMMAND: - if(BN_CLICKED == HIWORD(wp) && (IDOK == LOWORD(wp) || IDCANCEL == LOWORD(wp))) + if (BN_CLICKED == HIWORD(wp) && (IDOK == LOWORD(wp) || IDCANCEL == LOWORD(wp))) { - ::EndDialog(hWnd,IDOK); + ::EndDialog(hWnd, IDOK); } break; } @@ -35,7 +35,7 @@ namespace } } -void show_variable_list(HWND hwndParent,const IQuotesProvider* pProvider) +void show_variable_list(HWND hwndParent, const IQuotesProvider* pProvider) { ::DialogBoxParam(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG_VARIABLE_LIST), -- cgit v1.2.3