summaryrefslogtreecommitdiff
path: root/recipes/qpealarmclock/qpealarmclock-1.0.9/fix-compile.patch
blob: a39c91d796cf5972be33f4264d7e54e4ccd02c98 (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

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

--- qpealarmclock/AlarmDetails.h~fix_compile
+++ qpealarmclock/AlarmDetails.h
@@ -63,26 +63,9 @@
 
        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 Weekdays weekdaysGroups[] =
-    {
-      WEEKDAYS_NONE,
-      WEEKDAYS_ALL,
-      WEEKDAYS_WORKDAYS,
-      WEEKDAYS_WEEKEND,
-      WEEKDAYS_IGNORE
-    };
+    static const Weekdays flags[];
+    static const AlarmDetails::Weekdays weekdaysGroups[];
   
     AlarmDetails(int alarmNumberInit);
     ~AlarmDetails();

--- qpealarmclock/AlarmDetails.cpp~fix-compile-2
+++ qpealarmclock/AlarmDetails.cpp
@@ -22,8 +22,25 @@
 #include <qimage.h>
 #include <qpixmap.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)
 {