Fix for a compile error in kdebase/kworkspace/kwin/rules.cpp

David Faure faure at kde.org
Wed Jan 11 10:22:13 GMT 2006


On Saturday 07 January 2006 20:43, Tim Beaulen wrote:
> Hello,
> 
> When trying to compile the file rules.cpp, I get the following error:
> 
> /home/kde4dev/kde/src/kdebase/workspace/kwin/kcmkwin/kwinrules/../../rules.cpp:229:
> error: conversion from `NET::<anonymous enum>' to `const QVariant' is
> ambiguous
> 
> 
> I fixed it like this:
> 
> -    WRITE_WITH_DEFAULT( QVariant::fromValue(types), NET::AllTypesMask );
> +    WRITE_WITH_DEFAULT( QVariant::fromValue(types), /*
> NET::AllTypesMask = 0LU-1 */  QVariant::fromValue(0LU-1) );

static_cast<int>(NET::AllTypesMask) should do the job too.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list