From e95fcb09fc069a83b3c10c19c081873daba49831 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 17 Oct 2004 18:38:39 +0000 Subject: G++ 4.0 compiler fixes -Remove anonymous structures and name them -Include 'card.h' to cardpile to make 'Card' known to QList so deleteItem will work -cast 'enum' to char in event.cpp and opimevent.cpp --- (limited to 'libopie2') 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 @@ -70,7 +70,7 @@ int OCalendarHelper::dayOfWeek( char day ) { int dayOfWeek = 1; char i = OPimRecurrence::MON; - while ( !( i & day ) && i <= OPimRecurrence::SUN ) + while ( !( i & day ) && i <= static_cast(OPimRecurrence::SUN) ) { i <<= 1; ++dayOfWeek; -- cgit v0.9.0.2