diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-27 21:30:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-27 21:30:30 +0000 |
commit | 8549e48fbb8520027d4d8ba74b6f12f3042faebc (patch) | |
tree | f4aa951f6c13d179ca711ae5977eb38698dcaf52 /src/modules/updatenotify/updatenotify.cpp | |
parent | d27904ad1988ba6f85228f3c0cb7de8379a3147b (diff) |
ipv6 sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/updatenotify/updatenotify.cpp')
-rw-r--r-- | src/modules/updatenotify/updatenotify.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
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)
|