OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d428e
)
replace QVector<T>() with QVarLengthArray<T>() in QTextDocumentLayoutPrivate::layoutT...
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 4 Oct 2021 06:56:28 +0000
(09:56 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Mon, 4 Oct 2021 06:56:28 +0000
(09:56 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/text/qtextdocumentlayout.cpp
patch
|
blob
|
history
diff --git
a/src/gui/text/qtextdocumentlayout.cpp
b/src/gui/text/qtextdocumentlayout.cpp
index
5c86d47
..
b71d214
100644
(file)
--- a/
src/gui/text/qtextdocumentlayout.cpp
+++ b/
src/gui/text/qtextdocumentlayout.cpp
@@
-1772,8
+1772,7
@@
recalc_minmax_widths:
if (pageHeight <= 0)
pageHeight = QFIXED_MAX;
- QVector<QFixed> heightToDistribute;
- heightToDistribute.resize(columns);
+ QVarLengthArray<QFixed> heightToDistribute(columns);
td->headerHeight = 0;
const int headerRowCount = qMin(table->format().headerRowCount(), rows - 1);