diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 15:43:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 15:43:18 +0000 |
commit | b9342641f520a5418fb2a8b2993148a66ea8e33b (patch) | |
tree | e7b88518a6f0b3e73a8ac67f2a008b174bc6cfcd /plugins/Alarms/alarmlist.h | |
parent | 526bab64790186ca6d33a96d0bd14df683b5d184 (diff) |
64-bit compilation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/alarmlist.h')
-rw-r--r-- | plugins/Alarms/alarmlist.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Alarms/alarmlist.h b/plugins/Alarms/alarmlist.h index 8fdc4b3ac1..af8e90b666 100644 --- a/plugins/Alarms/alarmlist.h +++ b/plugins/Alarms/alarmlist.h @@ -25,14 +25,14 @@ public: virtual ~AlarmList() {clear();}
void sort() {
- if(count < 2) return;
+ if (count < 2) return;
Node *c1 = head, *c2;
// bubble sort...hey, i'm lazy :)
while(c1) {
c2 = c1->next;
while(c2) {
- if(c2->alarm < c1->alarm) {
+ if (c2->alarm < c1->alarm) {
swap (c1, c2);
}
c2 = c2->next;
@@ -70,12 +70,12 @@ public: ALARM *current() {return (it_current ? &it_current->alarm : 0);}
void next() {it_current = it_current->next;}
void erase() {
- if(it_current) {
- if(it_current->next) it_current->next->prev = it_current->prev;
- if(it_current->prev) it_current->prev->next = it_current->next;
+ if (it_current) {
+ if (it_current->next) it_current->next->prev = it_current->prev;
+ if (it_current->prev) it_current->prev->next = it_current->next;
- if(tail == it_current) tail = tail->prev;
- if(head == it_current) head = head->next;
+ if (tail == it_current) tail = tail->prev;
+ if (head == it_current) head = head->next;
free_alarm_data(&it_current->alarm);
delete it_current;
@@ -91,10 +91,10 @@ public: copy_alarm_data(&nn->alarm, alarm);
nn->prev = tail;
- if(tail) tail->next = nn;
+ if (tail) tail->next = nn;
tail = nn;
- if(!head) head = tail;
+ if (!head) head = tail;
count++;
}
|