diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-18 23:14:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-18 23:14:19 +0300 |
commit | c2e2c85262148dcf71450dfd3c7b33ef41eb84ec (patch) | |
tree | fe21b2d7677f955168dee25b4fea722dcd06c924 /plugins/Msg_Export/src | |
parent | e3bea6d9c261c87d7f67ecc06392c0d0cd4fe2dc (diff) |
code cleaning
- ACKTYPE_URL removed;
- PF1_URL removed;
- IEED_EVENT_URL removed;
- another URL-related code cleaning
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-x | plugins/Msg_Export/src/utils.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 8b629bd6a4..d79a2537de 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -831,20 +831,10 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath bWriteIndentedToFile(hFile, nIndent, ptrW(DbEvent_GetTextW(&dbei, CP_ACP)), bWriteUTF8Format);
break;
- case EVENTTYPE_URL:
case EVENTTYPE_FILE:
{
- const wchar_t *pszType;
- const char *pszData;
-
- if (dbei.eventType == EVENTTYPE_URL) {
- pszType = LPGENW("URL: ");
- pszData = (char *)dbei.pBlob;
- }
- else {
- pszType = LPGENW("File: ");
- pszData = (char *)(dbei.pBlob + sizeof(DWORD));
- }
+ const wchar_t *pszType = LPGENW("File: ");
+ const char *pszData = (char *)(dbei.pBlob + sizeof(DWORD));
int nLen = (int)mir_strlen(pszData);
if ((pszData - (char *)dbei.pBlob) + nLen < (int)dbei.cbBlob) {
|