summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-09-02 19:24:27 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-09-02 19:24:27 +0000
commit22c79dbeea18dc46951445476976d8c634dd3c60 (patch)
tree800d9b5ec3a779733e614860701d7295760d0b98 /plugins/Dropbox/src/dropbox_utils.cpp
parent8a169dcdeaf4dd6455147453dc45c1929a3bc239 (diff)
Dropbox: code cleanup & menu uid
git-svn-id: http://svn.miranda-ng.org/main/trunk@15157 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_utils.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_utils.cpp7
1 files changed, 3 insertions, 4 deletions
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);
}