summaryrefslogtreecommitdiff
path: root/plugins/Popup/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-17 10:55:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-17 10:55:39 +0000
commitbe3717abb738ab3afdd8e70ec529254130fbb550 (patch)
treefd0f25cc0f2f174012408ba88b49ccdbe7b76254 /plugins/Popup/src
parent0c060267ccea726d5c2c2fd1e45d1f16965fb01e (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14976 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r--plugins/Popup/src/skin.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/Popup/src/skin.cpp b/plugins/Popup/src/skin.cpp
index 544069e276..3d972c60e0 100644
--- a/plugins/Popup/src/skin.cpp
+++ b/plugins/Popup/src/skin.cpp
@@ -170,7 +170,8 @@ void PopupSkin::drawActionBar(MyBitmap *bmp, PopupWnd2 *wnd, int x, int y) const
void PopupSkin::measure(HDC hdc, PopupWnd2 *wnd, int maxw, POPUPOPTIONS *options) const
{
- if (!m_elements) return;
+ if (!m_elements)
+ return;
SKINELEMENT *head = NULL;
@@ -214,8 +215,7 @@ void PopupSkin::measure(HDC hdc, PopupWnd2 *wnd, int maxw, POPUPOPTIONS *options
wnd->getArgs()->add(buf, (m_flags&(1L << i)) ? 1 : 0);
}
- SIZE sz;
- sz.cx = sz.cy = 0;
+ SIZE sz = { 0, 0 };
head = m_elements;
while (head) {
if ((m_flags & head->flag_mask) != (head->flags & head->flag_mask)) {
@@ -344,10 +344,11 @@ void PopupSkin::measure(HDC hdc, PopupWnd2 *wnd, int maxw, POPUPOPTIONS *options
}
else {
HFONT hfnSave = (HFONT)SelectObject(hdc, fonts.clock);
- GetTextExtentPoint32(hdc, wnd->getTime(), (int)mir_tstrlen(wnd->getTime()), &sz);
+ SIZE szClock;
+ GetTextExtentPoint32(hdc, wnd->getTime(), (int)mir_tstrlen(wnd->getTime()), &szClock);
SelectObject(hdc, hfnSave);
- wnd->getArgs()->add("clock.width", sz.cx + 2 * STYLE_SZ_GAP);
- wnd->getArgs()->add("clock.height", sz.cy);
+ wnd->getArgs()->add("clock.width", szClock.cx + 2 * STYLE_SZ_GAP);
+ wnd->getArgs()->add("clock.height", szClock.cy);
}
break;
}