Why isn't the 'operator==' in ksslcertificate not a boolean?

Thiago Macieira thiago at kde.org
Tue Jul 10 12:55:13 BST 2007


Richard Dale wrote:
>In ksslcertificate.h there are these two methods:
>
>KIO_EXPORT int operator==(KSSLCertificate& x, KSSLCertificate& y);
>KIO_EXPORT inline int operator!=(KSSLCertificate& x, KSSLCertificate& y)
>{ return !(x == y); }
>
>Is there any reason why they don't return a bool value?

Because it's KDE 2 code no one has cleaned up yet.

That's a private API. Do not create a binding for it, please.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- 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-core-devel/attachments/20070710/6948f1bb/attachment.sig>


More information about the kde-core-devel mailing list