diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-15 15:06:56 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-08 19:58:01 +0000 |
commit | b034a14dc589fecbbb1e0c807690910303ca82a3 (patch) | |
tree | 6454c00734c013e859ff5760dc4e3b6db3456289 /src/gui/text/qtexttable_p.h | |
parent | f049546d95607a03059ad334087a00e1714876a8 (diff) |
Replace some QList<int> with QVector<int>
On 64-bit platforms, QVector<int> uses only 50% of QList<int>
per-element memory.
Change-Id: I3057781e7fb58007ea2619cc91965a626d01473b
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/gui/text/qtexttable_p.h')
-rw-r--r-- | src/gui/text/qtexttable_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtexttable_p.h b/src/gui/text/qtexttable_p.h index d6d806cec3..72d9d8c639 100644 --- a/src/gui/text/qtexttable_p.h +++ b/src/gui/text/qtexttable_p.h @@ -71,7 +71,7 @@ public: int findCellIndex(int fragment) const; - QList<int> cells; + QVector<int> cells; // symmetric to cells array and maps to indecs in grid, // used for fast-lookup for row/column by fragment mutable QVector<int> cellIndices; |