diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-17 14:16:43 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-17 16:17:58 +0000 |
commit | 7ca90e985cd92c9537fec6d523b93b45c5edfdb5 (patch) | |
tree | d43865fa6fad7319a87c830d75563ee728d2737d /src/printsupport/dialogs/qprintpreviewdialog.cpp | |
parent | 8049e9b3b93e855d32021edb6fc4bdcb41ccd512 (diff) |
QSslSocket (OpenSSL): replace QList<QPair> by QVector<Struct>
A QList<QPair<int,int>> is one of the most dangerous ones, because
it fundamentally changes memory layout, and therefore performance
and invariants, when going from 32-bit platforms (array list) to
64-bit (vector-like).
Port to QVector instead, which has a consistent design across all
platforms.
Also port from QPair to a simple struct { code, depth }, because
member names such as 'first' and 'second' have no semantic value
and make code using them very hard to understand.
Change-Id: I86c95d78dbb2e82ec222d6eae8ba11568e3ff0af
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/printsupport/dialogs/qprintpreviewdialog.cpp')
0 files changed, 0 insertions, 0 deletions