[Development] Don't use Private *d when your class is immutable
Richard Moore
rich at kde.org
Fri Mar 3 10:43:56 CET 2017
On 3 March 2017 at 07:30, Marc Mutz <marc.mutz at kdab.com> wrote:
> Bad example: QSslCipher. Look at all the messy API that just deals with the
> fact it's pimpled. That class is particularly hideous because it allocates
> memory on every copy!
>
>
Please avoid using the SSL code as the example since you don't really
understand it. QSslCipher /should/ be an integer index into a table. The
fact that it isn't is a poor workaround for weak API from openssl and poor
design choices when SSL supported was added to Qt.
Cheers
Rich.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170303/53d62303/attachment.html>
More information about the Development
mailing list