From 8549e48fbb8520027d4d8ba74b6f12f3042faebc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 May 2012 21:30:30 +0000 Subject: ipv6 sync git-svn-id: http://svn.miranda-ng.org/main/trunk@205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/updatenotify/updatenotify.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/modules/updatenotify') diff --git a/src/modules/updatenotify/updatenotify.cpp b/src/modules/updatenotify/updatenotify.cpp index ef955ba3c5..5b2162a041 100644 --- a/src/modules/updatenotify/updatenotify.cpp +++ b/src/modules/updatenotify/updatenotify.cpp @@ -214,17 +214,11 @@ static DWORD UpdateNotifyMakeVersion(char *str) { return PLUGIN_MAKE_VERSION(a1, a2, a3, a4); } -static int UpdateNotifyIsNewer(DWORD dwCurrent, DWORD dwTest) { - if (dwTest>dwCurrent) - return 1; - return 0; -} +inline bool UpdateNotifyIsNewer(DWORD dwCurrent, DWORD dwTest) +{ return dwTest > dwCurrent; } -static int UpdateNotifyReleaseDataValid(UpdateNotifyReleaseData *d) { - if (d&&d->szVersionPublic&&d->szVersion&&d->szDownload&&d->szNotes) - return 1; - return 0; -} +inline bool UpdateNotifyReleaseDataValid(UpdateNotifyReleaseData *d) +{ return d && d->szVersionPublic && d->szVersion && d->szDownload && d->szNotes; } static void UpdateNotifyFreeReleaseData(UpdateNotifyReleaseData *d) { if (!d) -- cgit v1.2.3