diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2022-10-25 14:46:52 +0200 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2022-11-16 18:25:35 +0200 |
| commit | 4c975fd564e3b1f5c398f6ffe6b4b87ff6f95379 (patch) | |
| tree | 8e30ad17da7a020910c737167cdc64f4204d26db /examples/qtestlib/tutorial4/testgui.cpp | |
| parent | e5f777638b6a32adc6245bf276af9c887b4c9b0f (diff) | |
QString: refactor removeStringImpl()
Use std::copy() instead of memmove(), cppreference.com docs mentions that
it will use memmove() internally, I confirmed that by following the code in
gdb, I did see that it uses:.
__builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
in /usr/include/c++/12/bits/stl_algobase.h
std::copy is more readable / easier-to-use API than memmove.
Change-Id: Iccb2fa1dc9897fd6a922ef96bc25308493d39eac
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/qtestlib/tutorial4/testgui.cpp')
0 files changed, 0 insertions, 0 deletions
