summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/ConnectionNotify.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-01 17:52:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-01 17:52:22 +0300
commit2eb26dc2acbcd30ae9f3673dae89ba647f594564 (patch)
tree3e79dccb35ce2a778f8e889b14858cddd54d851c /plugins/ConnectionNotify/src/ConnectionNotify.cpp
parenta394c200ee2664b177d376259ab26b78bb854c19 (diff)
PLI_ONLINE & PLI_OFFLINE - unused constants removed
Diffstat (limited to 'plugins/ConnectionNotify/src/ConnectionNotify.cpp')
-rw-r--r--plugins/ConnectionNotify/src/ConnectionNotify.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/ConnectionNotify/src/ConnectionNotify.cpp b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
index 0ec95a3328..9bec312628 100644
--- a/plugins/ConnectionNotify/src/ConnectionNotify.cpp
+++ b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
@@ -621,10 +621,11 @@ INT_PTR TMLoadIcon(WPARAM wParam, LPARAM)
UINT id;
switch (wParam & 0xFFFF) {
- case PLI_ONLINE:
- case PLI_PROTOCOL: id = IDI_ICON1; break; // IDI_TM is the main icon for the protocol
- case PLI_OFFLINE: id = IDI_ICON2; break;
- default: return 0;
+ case PLI_PROTOCOL:
+ id = IDI_ICON1;
+ break; // IDI_TM is the main icon for the protocol
+ default:
+ return 0;
}
return (INT_PTR)LoadImage(hInst, MAKEINTRESOURCE(id), IMAGE_ICON, GetSystemMetrics(wParam&PLIF_SMALL ? SM_CXSMICON : SM_CXICON), GetSystemMetrics(wParam&PLIF_SMALL ? SM_CYSMICON : SM_CYICON), 0);
}