From 8617d7e00546f892c9084f7c382648b23d8bbb63 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 16 Jun 2012 14:51:46 +0000 Subject: another portion of "#ifdef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAPP/popup_history_dlg.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'plugins/YAPP/popup_history_dlg.cpp') diff --git a/plugins/YAPP/popup_history_dlg.cpp b/plugins/YAPP/popup_history_dlg.cpp index fda95893d9..e192139c8a 100644 --- a/plugins/YAPP/popup_history_dlg.cpp +++ b/plugins/YAPP/popup_history_dlg.cpp @@ -336,14 +336,11 @@ IEVIEWEVENTDATA *CreateAndFillEventData(PopupHistoryData *popupItem) { eventData->cbSize = sizeof(IEVIEWEVENTDATA); eventData->iType = IEED_EVENT_MESSAGE; -#ifdef UNICODE + eventData->dwFlags = IEEDF_UNICODE_NICK | IEEDF_UNICODE_TEXT | IEEDF_UNICODE_TEXT2; eventData->pszNickW = popupItem->titleT; eventData->pszTextW = popupItem->messageT; -#else - eventData->pszNick = popupItem->titleT; - eventData->pszText = popupItem->messageT; -#endif + eventData->time = (DWORD) popupItem->timestamp; eventData->next = NULL; } @@ -479,11 +476,9 @@ void CopyPopupDataToClipboard(HWND hList, int selection) int found = 0; int count = ListView_GetItemCount(hList); int textType; -#ifdef _UNICODE + textType = CF_UNICODETEXT; -#else - textType = CF_TEXT; -#endif + for (i = 0; i < count; i++) { -- cgit v1.2.3