-rw-r--r-- | core/launcher/firstuse.cpp | 9 | ||||
-rw-r--r-- | libopie2/opiepim/core/opimevent.cpp | 2 | ||||
-rw-r--r-- | library/backend/event.cpp | 2 | ||||
-rw-r--r-- | noncore/applets/zkbapplet/keyzcfg/zkbnames.cpp | 18 | ||||
-rw-r--r-- | noncore/games/qasteroids/view.cpp | 7 | ||||
-rw-r--r-- | noncore/games/solitaire/cardpile.h | 2 |
6 files changed, 25 insertions, 15 deletions
diff --git a/core/launcher/firstuse.cpp b/core/launcher/firstuse.cpp index acddeea..8344787 100644 --- a/core/launcher/firstuse.cpp +++ b/core/launcher/firstuse.cpp @@ -62,12 +62,13 @@ using namespace Opie::Core; -struct { - bool enabled; +struct settingsTable_t { + bool enabled : 1; const char *app; const char *start; const char *stop; const char *desc; -} -settingsTable [] = +}; + +static settingsTable_t settingsTable [] = { { FALSE, "language", "raise()", "accept()", // No tr diff --git a/libopie2/opiepim/core/opimevent.cpp b/libopie2/opiepim/core/opimevent.cpp index c656c3d..7bc6c32 100644 --- a/libopie2/opiepim/core/opimevent.cpp +++ b/libopie2/opiepim/core/opimevent.cpp @@ -71,5 +71,5 @@ int OCalendarHelper::dayOfWeek( char day ) int dayOfWeek = 1; char i = OPimRecurrence::MON; - while ( !( i & day ) && i <= OPimRecurrence::SUN ) + while ( !( i & day ) && i <= static_cast<char>(OPimRecurrence::SUN) ) { i <<= 1; diff --git a/library/backend/event.cpp b/library/backend/event.cpp index 90860e8..abc420b 100644 --- a/library/backend/event.cpp +++ b/library/backend/event.cpp @@ -400,5 +400,5 @@ int Event::dayOfWeek( char day ) int dayOfWeek = 1; char i = Event::MON; - while ( !( i & day ) && i <= Event::SUN ) { + while ( !( i & day ) && i <= static_cast<char>(Event::SUN) ) { i <<= 1; ++dayOfWeek; diff --git a/noncore/applets/zkbapplet/keyzcfg/zkbnames.cpp b/noncore/applets/zkbapplet/keyzcfg/zkbnames.cpp index b2180ba..a47bf6c 100644 --- a/noncore/applets/zkbapplet/keyzcfg/zkbnames.cpp +++ b/noncore/applets/zkbapplet/keyzcfg/zkbnames.cpp @@ -6,8 +6,10 @@ QString Null_String((const char*) 0); // Implementation of KeyNames -static struct { +struct Key_Names_t { int key; char *name; -} Key_Names[] = { +}; + +static const Key_Names_t Key_Names[] = { { 32, "Space" }, { 39, "Apostrophe" }, @@ -106,8 +108,10 @@ const QString& KeyNames::find(int k) { // Implementation of ModifierNames -struct { +struct Modifier_Names_t { int value; char* name; -} Modifier_Names[] = { +}; + +static const Modifier_Names_t Modifier_Names[] = { { 8, "Shift" }, { 16, "Control" }, @@ -160,8 +164,10 @@ const QString& ModifierNames::find(int k) { // Implementation of KeycodeNames -struct { +struct Keycode_Names_t { char* name; int keycode; -} Keycode_Names[] = { +}; + +static const Keycode_Names_t Keycode_Names[] = { { "Escape", 0x1000 }, { "Tab", 0x1001 }, diff --git a/noncore/games/qasteroids/view.cpp b/noncore/games/qasteroids/view.cpp index 352c63b..3a4d410 100644 --- a/noncore/games/qasteroids/view.cpp +++ b/noncore/games/qasteroids/view.cpp @@ -56,11 +56,12 @@ #endif -struct +struct kas_animations_t { int id; const char *path; int frames; -} -kas_animations [] = +}; + +static const kas_animations_t kas_animations [] = { // { ID_ROCK_LARGE, "rock1/rock1\%1.png", 32 }, diff --git a/noncore/games/solitaire/cardpile.h b/noncore/games/solitaire/cardpile.h index 1eb2499..757e6b3 100644 --- a/noncore/games/solitaire/cardpile.h +++ b/noncore/games/solitaire/cardpile.h @@ -21,4 +21,6 @@ #define CARD_PILE_H +#include "card.h" + #include <qpoint.h> |