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

Tim Beaulen tbscope at gmail.com
Sat Jan 7 19:43:55 GMT 2006


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) );


I'm not sure if this is ok though.




More information about the kde-core-devel mailing list