summaryrefslogtreecommitdiff
path: root/packages/qpealarmclock/qpealarmclock-1.0.4/fix-compile.patch
blob: bd69318a5c3016580fc12bf3ce9b8bcb41661d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- qpealarmclock_V1.0.4/AlarmDetails.h~fix-compile
+++ qpealarmclock_V1.0.4/AlarmDetails.h
@@ -64,25 +64,8 @@
        WEEKDAYS_IGNORE    = 0xFF    // do not change any days
     };
        
-    static const Weekdays flags[] =
-    {
-      WEEKDAYS_MONDAY,
-      WEEKDAYS_TUESDAY,
-      WEEKDAYS_WEDNSDAY,
-      WEEKDAYS_THURSDAY,
-      WEEKDAYS_FRIDAY,
-      WEEKDAYS_SATURDAY,
-      WEEKDAYS_SUNDAY
-    };
-
-    static const AlarmDetails::Weekdays weekdaysGroups[] =
-    {
-      AlarmDetails::WEEKDAYS_NONE,
-      AlarmDetails::WEEKDAYS_ALL,
-      AlarmDetails::WEEKDAYS_WORKDAYS,
-      AlarmDetails::WEEKDAYS_WEEKEND,
-      AlarmDetails::WEEKDAYS_IGNORE
-    };
+    static const Weekdays flags[];
+    static const AlarmDetails::Weekdays weekdaysGroups[];
   
     AlarmDetails(int alarmNumberInit);
     ~AlarmDetails();
--- qpealarmclock_V1.0.4/AlarmDetails.cpp~fix-compile
+++ qpealarmclock_V1.0.4/AlarmDetails.cpp
@@ -3,22 +3,39 @@
  *
  * Copyright (C) 2002 Dafydd Walters <dwalters@users.sourceforge.net>
  * Modified by Anton Maslovsky <my-zaurus@narod.ru> 2003/01/28
- * 
+ *
  * This program may be modified or redistributed under the terms of the GNU
- * General Public License (GPL), version 2 or later. A copy of the GNU GPL 
- * should have accompanied the source code of this program. If not, please 
+ * General Public License (GPL), version 2 or later. A copy of the GNU GPL
+ * should have accompanied the source code of this program. If not, please
  * write to the Free Software Foundation Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *
  * This program is distributed without any warranty.
- */ 
+ */
 
 #include "AlarmDetails.h"
 #include <qpe/config.h>
 #include <qpe/alarmserver.h>
 
-const AlarmDetails::Weekdays AlarmDetails::flags[];
-const AlarmDetails::Weekdays AlarmDetails::weekdaysGroups[];
+const AlarmDetails::Weekdays AlarmDetails::flags[] =
+{
+    WEEKDAYS_MONDAY,
+    WEEKDAYS_TUESDAY,
+    WEEKDAYS_WEDNSDAY,
+    WEEKDAYS_THURSDAY,
+    WEEKDAYS_FRIDAY,
+    WEEKDAYS_SATURDAY,
+    WEEKDAYS_SUNDAY
+};
+
+const AlarmDetails::Weekdays AlarmDetails::weekdaysGroups[] =
+{
+    AlarmDetails::WEEKDAYS_NONE,
+    AlarmDetails::WEEKDAYS_ALL,
+    AlarmDetails::WEEKDAYS_WORKDAYS,
+    AlarmDetails::WEEKDAYS_WEEKEND,
+    AlarmDetails::WEEKDAYS_IGNORE
+};
 
 AlarmDetails::AlarmDetails(int alarmNumberInit) : alarmNumber(alarmNumberInit)
 {