mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't use QList if sizeof(item) > void*.
QList is optimized for storing pointer-sized items, thus a QVector is the better choice for everything else. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5e446fd258
commit
1a933e7e19
4 changed files with 10 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <QObject>
|
||||
#include <QPrinter>
|
||||
#include <QList>
|
||||
#include <QVector>
|
||||
|
||||
class QTableView;
|
||||
class PrintDialog;
|
||||
|
@ -27,7 +28,7 @@ private:
|
|||
qreal scaleX, scaleY;
|
||||
QRect pageRect;
|
||||
|
||||
QList<QString> tablePrintColumnNames;
|
||||
QVector<QString> tablePrintColumnNames;
|
||||
unsigned int tablePrintHeadingBackground;
|
||||
QList<unsigned int> tablePrintColumnWidths;
|
||||
unsigned int profilePrintTableMaxH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue