summaryrefslogtreecommitdiff
path: root/plugins/PasteIt
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-27 14:52:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-27 14:52:20 +0300
commit66ab99eb5b5c47a01e1cc6613af07426abbeb19b (patch)
tree6b3a84cf91b9e383f348355d702e4b38ff1be1e8 /plugins/PasteIt
parent38d70bf8d8d08cc687263b83ab598279d36a9c56 (diff)
unused variable CHAT_MANAGER *pci removed and replaced with g_chatApi
Diffstat (limited to 'plugins/PasteIt')
-rw-r--r--plugins/PasteIt/src/PasteIt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/PasteIt/src/PasteIt.cpp b/plugins/PasteIt/src/PasteIt.cpp
index a419de75b1..a56a46d15e 100644
--- a/plugins/PasteIt/src/PasteIt.cpp
+++ b/plugins/PasteIt/src/PasteIt.cpp
@@ -35,7 +35,6 @@ static IconItem iconList[] =
};
CMPlugin g_plugin;
-CHAT_MANAGER *pci;
#define FROM_CLIPBOARD 10
#define FROM_FILE 11
@@ -128,7 +127,7 @@ static void PasteIt(MCONTACT hContact, int mode)
// in chat room.
// Next step is to get all protocol sessions and find
// one with correct hContact
- int cnt = pci->SM_GetCount(szProto);
+ int cnt = g_chatApi.SM_GetCount(szProto);
for (int i = 0; i < cnt; i++) {
GC_INFO gci = {};
gci.iItem = i;
@@ -349,8 +348,6 @@ static int ModulesLoaded(WPARAM, LPARAM)
extern "C" int __declspec(dllexport) Load(void)
{
- pci = Chat_GetInterface();
-
g_plugin.registerIcon(LPGEN("Paste It"), iconList);
NETLIBUSER nlu = {};