From 22c79dbeea18dc46951445476976d8c634dd3c60 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 2 Sep 2015 19:24:27 +0000 Subject: Dropbox: code cleanup & menu uid git-svn-id: http://svn.miranda-ng.org/main/trunk@15157 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_utils.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_utils.cpp') diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index b5e837878d..252f2ad607 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -61,8 +61,7 @@ void CDropbox::SendToContact(MCONTACT hContact, const char* data) } const char *szProto = GetContactProto(hContact); - bool isChatRoom = db_get_b(hContact, szProto, "ChatRoom", 0); - if (isChatRoom) + if (db_get_b(hContact, szProto, "ChatRoom", 0) == TRUE) { ptrT tszChatRoom(db_get_tsa(hContact, szProto, "ChatRoomID")); GCDEST gcd = { szProto, tszChatRoom, GC_EVENT_SENDMESSAGE }; @@ -96,7 +95,7 @@ void CDropbox::PasteToInputArea(MCONTACT hContact, const char* data) } } -void CDropbox::PasteToClipboard(MCONTACT hContact, const char* data) +void CDropbox::PasteToClipboard(const char* data) { if (OpenClipboard(NULL)) { @@ -126,5 +125,5 @@ void CDropbox::Report(MCONTACT hContact, const char* data) PasteToInputArea(hContact, data); if (db_get_b(NULL, MODULE, "UrlCopyToClipboard", 0)) - PasteToClipboard(hContact, data); + PasteToClipboard(data); } -- cgit v1.2.3