[Development] Don't use Private *d when your class is immutable

Marc Mutz marc.mutz at kdab.com
Fri Mar 3 12:33:06 CET 2017


On Friday 03 March 2017 10:43:56 Richard Moore wrote:
[...]
> QSslCipher should be an integer index into a table. The
> fact that it isn't is a poor workaround for weak API from​ openssl

Would you mind to expand on that? I don't see any a-priori reason why 
QSslCipher can't be fixed to contain an index (qintptr), from a BC pov. What 
in OpenSSL prevents this?

> and poor
> design choices when SSL supported was added to Qt.

Since it was intended as an example for poor design choices, I feel I picked 
the correct example :)

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts



More information about the Development mailing list