[PATCH] add dummy operator== and dummy qHash for win32 target

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Nov 6 09:33:35 GMT 2005


Hi,

Here is an idea how to work around the problem that msvc needs a full
instatiated template when exporting a class. It adds an dummy operator==
(K_DUMMY_COMPARISON_OPERATOR) and a dummy qHash function
(K_DUMMY_QHASH_OPERATOR). I've masked it with
K_FULL_TEMPLATE_EXPORT_INSTANTIATION so gcc will not create any code for
the dummy functions.
Also this patch changes qtButtonStateToMod() (win32-only function) to
work with Qt4.

christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdecore.patch
Type: text/x-diff
Size: 2111 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051106/e650a38c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051106/e650a38c/attachment.sig>


More information about the kde-core-devel mailing list