]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qpealarmclock/qpealarmclock-1.0.4/fix-compile.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qpealarmclock / qpealarmclock-1.0.4 / fix-compile.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- qpealarmclock_V1.0.4/AlarmDetails.h~fix-compile
7 +++ qpealarmclock_V1.0.4/AlarmDetails.h
8 @@ -64,25 +64,8 @@
9         WEEKDAYS_IGNORE    = 0xFF    // do not change any days
10      };
11         
12 -    static const Weekdays flags[] =
13 -    {
14 -      WEEKDAYS_MONDAY,
15 -      WEEKDAYS_TUESDAY,
16 -      WEEKDAYS_WEDNSDAY,
17 -      WEEKDAYS_THURSDAY,
18 -      WEEKDAYS_FRIDAY,
19 -      WEEKDAYS_SATURDAY,
20 -      WEEKDAYS_SUNDAY
21 -    };
22 -
23 -    static const AlarmDetails::Weekdays weekdaysGroups[] =
24 -    {
25 -      AlarmDetails::WEEKDAYS_NONE,
26 -      AlarmDetails::WEEKDAYS_ALL,
27 -      AlarmDetails::WEEKDAYS_WORKDAYS,
28 -      AlarmDetails::WEEKDAYS_WEEKEND,
29 -      AlarmDetails::WEEKDAYS_IGNORE
30 -    };
31 +    static const Weekdays flags[];
32 +    static const AlarmDetails::Weekdays weekdaysGroups[];
33    
34      AlarmDetails(int alarmNumberInit);
35      ~AlarmDetails();
36 --- qpealarmclock_V1.0.4/AlarmDetails.cpp~fix-compile
37 +++ qpealarmclock_V1.0.4/AlarmDetails.cpp
38 @@ -3,22 +3,39 @@
39   *
40   * Copyright (C) 2002 Dafydd Walters <dwalters@users.sourceforge.net>
41   * Modified by Anton Maslovsky <my-zaurus@narod.ru> 2003/01/28
42 - * 
43 + *
44   * This program may be modified or redistributed under the terms of the GNU
45 - * General Public License (GPL), version 2 or later. A copy of the GNU GPL 
46 - * should have accompanied the source code of this program. If not, please 
47 + * General Public License (GPL), version 2 or later. A copy of the GNU GPL
48 + * should have accompanied the source code of this program. If not, please
49   * write to the Free Software Foundation Inc., 59 Temple Place - Suite 330,
50   * Boston, MA 02111-1307, USA.
51   *
52   * This program is distributed without any warranty.
53 - */ 
54 + */
55  
56  #include "AlarmDetails.h"
57  #include <qpe/config.h>
58  #include <qpe/alarmserver.h>
59  
60 -const AlarmDetails::Weekdays AlarmDetails::flags[];
61 -const AlarmDetails::Weekdays AlarmDetails::weekdaysGroups[];
62 +const AlarmDetails::Weekdays AlarmDetails::flags[] =
63 +{
64 +    WEEKDAYS_MONDAY,
65 +    WEEKDAYS_TUESDAY,
66 +    WEEKDAYS_WEDNSDAY,
67 +    WEEKDAYS_THURSDAY,
68 +    WEEKDAYS_FRIDAY,
69 +    WEEKDAYS_SATURDAY,
70 +    WEEKDAYS_SUNDAY
71 +};
72 +
73 +const AlarmDetails::Weekdays AlarmDetails::weekdaysGroups[] =
74 +{
75 +    AlarmDetails::WEEKDAYS_NONE,
76 +    AlarmDetails::WEEKDAYS_ALL,
77 +    AlarmDetails::WEEKDAYS_WORKDAYS,
78 +    AlarmDetails::WEEKDAYS_WEEKEND,
79 +    AlarmDetails::WEEKDAYS_IGNORE
80 +};
81  
82  AlarmDetails::AlarmDetails(int alarmNumberInit) : alarmNumber(alarmNumberInit)
83  {