summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/WinCtrlHelper.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
commit9b119cadd74e1343cad493e8b366e69743a620d0 (patch)
treee11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/WinCtrlHelper.h
parent1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (diff)
Quotes: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/WinCtrlHelper.h')
-rw-r--r--plugins/Quotes/src/WinCtrlHelper.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Quotes/src/WinCtrlHelper.h b/plugins/Quotes/src/WinCtrlHelper.h
index d7f8957a86..52e4521f24 100644
--- a/plugins/Quotes/src/WinCtrlHelper.h
+++ b/plugins/Quotes/src/WinCtrlHelper.h
@@ -7,9 +7,9 @@ inline tstring get_window_text(HWND hWnd)
{
int cBytes = ::GetWindowTextLength(hWnd);
- std::vector<TCHAR> aBuf(cBytes+1);
+ std::vector<TCHAR> aBuf(cBytes + 1);
LPTSTR pBuffer = &*(aBuf.begin());
- ::GetWindowText(hWnd,pBuffer,cBytes+1);
+ ::GetWindowText(hWnd, pBuffer, cBytes + 1);
return tstring(pBuffer);
}
@@ -21,16 +21,16 @@ inline void prepare_edit_ctrl_for_error(HWND hwndEdit)
::SendMessage(hwndEdit, EM_SCROLLCARET, 0, 0);
}
-void show_variable_list(HWND hwndParent,const IQuotesProvider* pProvider);
+void show_variable_list(HWND hwndParent, const IQuotesProvider* pProvider);
-inline int Quotes_MessageBox(HWND hWnd,LPCTSTR pszText,UINT nType = MB_OK)
-{
- return ::MessageBox(hWnd,pszText,quotes_a2t(MIRANDANAME).c_str(),nType);
+inline int Quotes_MessageBox(HWND hWnd, LPCTSTR pszText, UINT nType = MB_OK)
+{
+ return ::MessageBox(hWnd, pszText, quotes_a2t(MIRANDANAME).c_str(), nType);
}
-inline void spin_set_range(HWND hwndSpin,short nLower,short nUpper)
+inline void spin_set_range(HWND hwndSpin, short nLower, short nUpper)
{
- ::SendMessage(hwndSpin,UDM_SETRANGE,0,MAKELPARAM(nUpper,nLower));
+ ::SendMessage(hwndSpin, UDM_SETRANGE, 0, MAKELPARAM(nUpper, nLower));
}