diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2022-04-22 10:45:36 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-04-25 16:54:01 -0700 |
| commit | 54eae2d610bee85a40050d76fc0b01cf6a181f6e (patch) | |
| tree | 41c89aeff022082ae25b65fd1007ef82fdd56262 /src/widgets/doc/snippets/dockwidgets/mainwindow.cpp | |
| parent | e92e48bc791ddafe14be39aae10790b680ddd1f7 (diff) | |
QTextEngine: don't pass empty data to bidiReorder
The algorithm in QTextEngine::bidiReorder() doesn't like an empty level
and visual order list. Found by GCC 12's slightly misleading warning:
qtextengine.cpp:3838:29: error: ‘levels’ may be used uninitialized [-Werror=maybe-uninitialized]
qtextengine.cpp:1174:6: note: by argument 2 of type ‘const quint8*’ {aka ‘const unsigned char*’} to ‘static void QTextEngine::bidiReorder(int, const quint8*, int*)’ declared here
qtextengine.cpp:3835:28: note: ‘levels’ declared here
3835 | QVarLengthArray<uchar> levels(nItems);
| ^~~~~~
Pick-to: 6.2 6.3
Change-Id: If05aeeb7176e4f13af9afffd16e8490f131f160e
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/dockwidgets/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
