diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-02-10 18:43:46 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-03-05 13:24:33 +0000 |
commit | 40e4ab673a06d509f7672de6cbf05c80f981aeb6 (patch) | |
tree | 7e314113568e299b6a10190569d493eb120636b2 /src/gui | |
parent | d41a46bc39d35ddcf12f092c1b9ab41cc6c2aa16 (diff) |
Simplify toStdWString
In C++17: just use std::basic_string::data().
In C++11: dereferencing begin() on an empty string is undefined
behavior on all compilers, not just MSVC, so remove
that workaround. Instead of the reference-dereference
combo, use std::basic_string::front().
Change-Id: I3229597e000311ce71e4083dca6667bb56d8f8e3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions