diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2015-11-04 12:50:31 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2015-11-19 11:30:37 +0000 |
| commit | db9a0befca2415574e3bef8a0e07cf3fef62361c (patch) | |
| tree | 317f2d3da7a829ed00608e2a7dbc7f18814e1d39 /examples/widgets/graphicsview/chip/mainwindow.cpp | |
| parent | 110e82f5e916b6171ca257777ce5cbbbceb35714 (diff) | |
Add a QUtf8::convertToUnicode() overload that operates on an existing buffer
... and therefore doesn't need to allocate and thus
can be marked as nothrow.
Technically, the function doesn't have a wide
contract, because it has the precondition that
the buffer pointed to by the first argument needs
to be large enough to hold the result.
But that precondition can't be checked from within
the function, so no failure can be generated for
it and thus the nothrow guarantee is acceptable
(and desireable).
Change-Id: Iaf6ea6788ef6b4bbb6d8de59a3d0b14d66582307
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/widgets/graphicsview/chip/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
