From 069389941b173066e3026713602232e4fba1d45c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 6 Nov 2014 17:08:48 +0000 Subject: - common message archiving code extracted to a separate function; - manual memory allocation code removed; git-svn-id: http://svn.miranda-ng.org/main/trunk@10916 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Common.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/NewsAggregator/Src/Common.h') diff --git a/plugins/NewsAggregator/Src/Common.h b/plugins/NewsAggregator/Src/Common.h index 9e205709f8..b9407e7c85 100644 --- a/plugins/NewsAggregator/Src/Common.h +++ b/plugins/NewsAggregator/Src/Common.h @@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA. #include #include #include +#include #include #include #include @@ -43,6 +44,7 @@ Boston, MA 02111-1307, USA. #include #include +#include #include "version.h" #include "resource.h" @@ -125,15 +127,15 @@ VOID GetNewsData(TCHAR *szUrl, char** szData, MCONTACT hContact, HWND hwndDlg); VOID CreateList(HWND hwndList); VOID UpdateList(HWND hwndList); VOID DeleteAllItems(HWND hwndList); -time_t __stdcall DateToUnixTime(TCHAR *stamp, BOOL FeedType); +time_t __stdcall DateToUnixTime(const TCHAR *stamp, BOOL FeedType); VOID CheckCurrentFeed(MCONTACT hContact); VOID CheckCurrentFeedAvatar(MCONTACT hContact); TCHAR* CheckFeed(TCHAR* tszURL, HWND hwndDlg); void UpdateMenu(BOOL State); int ImportFeedsDialog(); -VOID ClearText(TCHAR *&message); +LPCTSTR ClearText(CMString &value, const TCHAR *message); BOOL DownloadFile(LPCTSTR tszURL, LPCTSTR tszLocal); -int StrReplace(TCHAR *lpszOld, TCHAR *lpszNew, TCHAR *&lpszStr); +int StrReplace(TCHAR *lpszOld, const TCHAR *lpszNew, TCHAR *&lpszStr); void CreateAuthString(char *auth, MCONTACT hContact, HWND hwndDlg); INT_PTR CALLBACK AuthenticationProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK DlgProcImportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); -- cgit v1.2.3