thiago.macieira at intel.com
Mon Mar 27 22:56:56 CEST 2017
On segunda-feira, 27 de março de 2017 11:14:24 PDT Giuseppe D'Angelo wrote:
> If we can't make it an alias, can we start adding extra functions for
> the various QStringRef *ref() methods (in QXmlStreamReader,
> QRegularExpressionMatch, probably elsewhere too), returning QStringView?
Never return QStringView in our API. It's as bad as returning a const
In fact, that's a good rule of thumb: if you could have used a const QString &
in that function, you can use QStringView. Otherwise, return QString by value.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development