summaryrefslogtreecommitdiffstats
path: root/examples/opengl/contextinfo/widget.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-11-27 21:18:37 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-01-31 20:02:54 +0200
commit95323397882a35bc7735a828895dcb47e5f32602 (patch)
tree2a61ff3a15e524722b56d31062b36114624663a8 /examples/opengl/contextinfo/widget.cpp
parent6b89883f6aedea5c3ec82c26f960ab98b70e23e4 (diff)
QString: use QVLA instead of built-in array
This simplifies the code as a QVLA's size isn't limited to 1024. Also it allows the code to allocate a big enough buffer to hold the result, i.e. no reallocations. insert_helper() takes care of storing a copy of "after" if it points into "this" string; and "before" pointing into "this" isn't an issue since we collected the indices before starting the replacement. Change-Id: I612948187226439349118e65e9525ded2b387da0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'examples/opengl/contextinfo/widget.cpp')
0 files changed, 0 insertions, 0 deletions