summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src/thumbs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FloatingContacts/src/thumbs.cpp')
-rw-r--r--plugins/FloatingContacts/src/thumbs.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/plugins/FloatingContacts/src/thumbs.cpp b/plugins/FloatingContacts/src/thumbs.cpp
index ae14979ff0..ecbe70c6bb 100644
--- a/plugins/FloatingContacts/src/thumbs.cpp
+++ b/plugins/FloatingContacts/src/thumbs.cpp
@@ -774,17 +774,15 @@ ThumbInfo *ThumbList::AddThumb(HWND hwnd, TCHAR *ptszName, HANDLE hContact)
return NULL;
ThumbInfo *pThumb = new ThumbInfo;
- if (pThumb != NULL) {
- _tcsncpy( pThumb->ptszName, ptszName, USERNAME_LEN - 1);
- pThumb->hContact = hContact;
- pThumb->hwnd = hwnd;
-
- pThumb->dockOpt.hwndLeft = NULL;
- pThumb->dockOpt.hwndRight = NULL;
+ _tcsncpy( pThumb->ptszName, ptszName, USERNAME_LEN - 1);
+ pThumb->hContact = hContact;
+ pThumb->hwnd = hwnd;
- pThumb->fTipActive = FALSE;
- RegHotkey(hContact, hwnd);
- }
+ pThumb->dockOpt.hwndLeft = NULL;
+ pThumb->dockOpt.hwndRight = NULL;
+
+ pThumb->fTipActive = FALSE;
+ RegHotkey(hContact, hwnd);
insert(pThumb);
return pThumb;