[Development] HEADS-UP: QStringLiteral

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Wed Aug 21 18:46:26 CEST 2019



> On 21 Aug 2019, at 18:32, Giuseppe D'Angelo via Development <development at qt-project.org> wrote:
> 
> On 21/08/2019 18:21, Tor Arne Vestbø wrote:
>> I would not want to have those “you’re using a fast, but not optimal version of the N string classes” warnings unless I was writing string heavy and performance sensitive code.
> 
> So just use QString :-)

You mean foo[QString(“bar”)] = QString(“baz”)?

That’s already two QStrings too much 😉 

> 
>> And if we can have the compiler automatically make the right choice for us we wouldn’t need any of those.
> 
> That's another "time machine" kind of thing.

Is it? For Qt 6?

> 
> Cheers,
> -- 
> Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development



More information about the Development mailing list