summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-04 18:26:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-04 18:26:00 +0000
commitb3cbd75fb723cb396ad49b528e39df0b25c4c3f7 (patch)
tree696b50c3121dc8211be622523d07d4c91fb9a769 /plugins/TabSRMM/src/utils.h
parentb3f2dd6e7b0ee526c8272fe8ad48cbeb4f51885a (diff)
code reordering
git-svn-id: http://svn.miranda-ng.org/main/trunk@9413 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/utils.h')
-rw-r--r--plugins/TabSRMM/src/utils.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/utils.h b/plugins/TabSRMM/src/utils.h
index d2edbc9f6e..a3f83f42bc 100644
--- a/plugins/TabSRMM/src/utils.h
+++ b/plugins/TabSRMM/src/utils.h
@@ -108,8 +108,6 @@ public:
template<typename T> static size_t TSAPI CopyToClipBoard(T* _t, const HWND hwndOwner)
{
- HGLOBAL hData;
-
if (!OpenClipboard(hwndOwner) || _t == 0)
return 0;
@@ -118,7 +116,7 @@ public:
size_t i = _s * (s->length() + 1);
EmptyClipboard();
- hData = ::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, i);
+ HGLOBAL hData = ::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, i);
CopyMemory((void*)GlobalLock(hData), (void*)_t, i);
GlobalUnlock(hData);