summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
commitb327ed7872ca83c3a4249039ba1a3d8dd3ece630 (patch)
tree5a4ae83dafab23f7832186b5dd0736611998f43c /plugins/New_GPG/src
parentfd7566b5de6b59bb18ff380cb1fa3f3f1089b70b (diff)
useless field DBEVENTINFO::cbSize removed
Diffstat (limited to 'plugins/New_GPG/src')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp2
-rw-r--r--plugins/New_GPG/src/utilities.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index afa1d8a579..2985a09b1f 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -570,7 +570,7 @@ INT_PTR onSendFile(WPARAM w, LPARAM l)
void HistoryLog(MCONTACT hContact, db_event evt)
{
- DBEVENTINFO Event = { sizeof(Event) };
+ DBEVENTINFO Event = {};
Event.szModule = szGPGModuleName;
Event.eventType = evt.eventType;
Event.flags = evt.flags;
diff --git a/plugins/New_GPG/src/utilities.h b/plugins/New_GPG/src/utilities.h
index d677ff400d..c1840d274b 100644
--- a/plugins/New_GPG/src/utilities.h
+++ b/plugins/New_GPG/src/utilities.h
@@ -50,7 +50,6 @@ public:
flags = 0;
timestamp = time(0);
szModule = 0;
- cbSize = 0;
cbBlob = DWORD(mir_strlen(msg)+1);
pBlob = (PBYTE)msg;
}
@@ -62,7 +61,6 @@ public:
flags = 0;
timestamp = time;
szModule = 0;
- cbSize = 0;
}
db_event(char* msg, DWORD time, int type)
{
@@ -75,7 +73,6 @@ public:
flags = 0;
timestamp = time;
szModule = 0;
- cbSize = 0;
}
db_event(char* msg, int type)
{
@@ -88,7 +85,6 @@ public:
eventType = EVENTTYPE_MESSAGE;
timestamp = time(0);
szModule = 0;
- cbSize = 0;
}
db_event(char* msg, DWORD time, int type, DWORD _flags)
{
@@ -101,9 +97,9 @@ public:
flags = _flags;
timestamp = time;
szModule = 0;
- cbSize = 0;
}
};
+
void HistoryLog(MCONTACT, db_event);
void fix_line_term(std::string &s);
void fix_line_term(std::wstring &s);