summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/UAboutForm.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2013-11-05 16:06:51 +0000
committerRené Schümann <white06tiger@gmail.com>2013-11-05 16:06:51 +0000
commit36dffc5b63263b87e6cf63e74edd404b7ede7c42 (patch)
treefe1df7704c6f8494725eb8bddd4a3ba9f2a5a388 /plugins/SendScreenshotPlus/src/UAboutForm.cpp
parent8dcf6f373552f30639b9557c5c11f9c9dc81fef1 (diff)
// 2 out of X
* cleanup (nothing functional) commented out unused functions, simplified some code, removed "unused" returns git-svn-id: http://svn.miranda-ng.org/main/trunk@6787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UAboutForm.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/UAboutForm.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/SendScreenshotPlus/src/UAboutForm.cpp b/plugins/SendScreenshotPlus/src/UAboutForm.cpp
index 98a533d4ab..5007deda1f 100644
--- a/plugins/SendScreenshotPlus/src/UAboutForm.cpp
+++ b/plugins/SendScreenshotPlus/src/UAboutForm.cpp
@@ -63,10 +63,8 @@ INT_PTR CALLBACK TfrmAbout::DlgTfrmAbout(HWND hWnd, UINT msg, WPARAM wParam, LPA
reinterpret_cast<TfrmAbout*>(lParam)->m_hWnd = hWnd;
return wnd->second->wmInitdialog(wParam, lParam);
}
- else {
- wnd = _HandleMapping.find(hWnd);
- }
- if (wnd == _HandleMapping.end()) { // something screwed up
+ wnd=_HandleMapping.find(hWnd);
+ if (wnd==_HandleMapping.end()) { // something screwed up
return FALSE; //dialog! do not use ::DefWindowProc(hWnd, msg, wParam, lParam);
}
@@ -148,9 +146,7 @@ LRESULT TfrmAbout::wmInitdialog(WPARAM wParam, LPARAM lParam) {
LRESULT TfrmAbout::wmCommand(WPARAM wParam, LPARAM lParam) {
//---------------------------------------------------------------------------
if (HIWORD(wParam) == BN_CLICKED) {
- int IDControl = LOWORD(wParam);
- HWND hCtrl = (HWND)lParam;
- switch(IDControl) {
+ switch(LOWORD(wParam)) {
case IDCANCEL:
case IDCLOSE:
break;