Fixed warning for Dano & Haiku builds.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19071 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-16 11:47:49 +00:00
parent 436505bb71
commit 463c8198b8
1 changed files with 4 additions and 0 deletions

View File

@ -34,8 +34,12 @@ SetColorCommand::~SetColorCommand()
status_t
SetColorCommand::InitCheck()
{
#ifdef HAIKU_TARGET_PLATFORM_BEOS
return fStyle && *(uint32*)&fStyle->Color() != *(uint32*)&fColor ?
B_OK : B_NO_INIT;
#else
return fStyle && fStyle->Color() != fColor ? B_OK : B_NO_INIT;
#endif
}
// Perform