[kde-linux] kdelibs compile error

Kevin Krammer kevin.krammer at gmx.at
Tue Mar 18 18:50:44 UTC 2008


On Tuesday 18 March 2008, Florian Harmuth wrote:

> kwin.cpp: In member function 'NET::WindowType
> KWin::WindowInfo::windowType(int) const':
> kwin.cpp:944: error: invalid conversion from 'int' to 'NET::WindowType'

> Any hints?

You probably need to add an explicit cast from the integer literal 0 to the 
enum type or return NET::Normal instead of 0.
I guess the second option is cleaner.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20080318/0f5dc218/attachment.sig>


More information about the kde-linux mailing list