diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2022-11-20 21:14:14 +0200 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-01-31 20:02:54 +0200 |
| commit | 3575d2d02861771f209e0af645cceb3ca369420c (patch) | |
| tree | ece314a5c44af1c81369557554f2e46323a2d8f6 /examples/opengl/contextinfo/widget.cpp | |
| parent | 95323397882a35bc7735a828895dcb47e5f32602 (diff) | |
QString: remove a try/catch from replace_helper()
I think it was there because of of the QChar array allocated on the
heap (to store a copy of the "after" string when it's part of 'this'
string) and the subsequent ::free() call; instead split some code to a
static helper, and store the copy in a QVarLengthArray; the latter has
SSO, so it'll only heap-allocate if needed, and will take care of
deleting the data.
Remove now unused textCopy() method.
Change-Id: Iaf29d19ebd40d24948f0859d80f45e4c16e5bbce
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
