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 'library') 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 @@ -399,7 +399,7 @@ int Event::dayOfWeek( char day ) { int dayOfWeek = 1; char i = Event::MON; - while ( !( i & day ) && i <= Event::SUN ) { + while ( !( i & day ) && i <= static_cast(Event::SUN) ) { i <<= 1; ++dayOfWeek; } -- cgit v0.9.0.2