diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-06 17:08:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-06 17:08:48 +0000 |
commit | 069389941b173066e3026713602232e4fba1d45c (patch) | |
tree | 7f301e3bc56d458ebed3e45a03b937b8099f954f /plugins/NewsAggregator/Src/Common.h | |
parent | f0899cc7909c130426af35ba1ef0689d35a708f7 (diff) |
- 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
Diffstat (limited to 'plugins/NewsAggregator/Src/Common.h')
-rw-r--r-- | plugins/NewsAggregator/Src/Common.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 <windows.h>
#include <commctrl.h>
#include <time.h>
+#include <malloc.h>
#include <fcntl.h>
#include <io.h>
#include <sys\stat.h>
@@ -43,6 +44,7 @@ Boston, MA 02111-1307, USA. #include <m_folders.h>
#include <m_toptoolbar.h>
+#include <m_string.h>
#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);
|