[Development] QString and related changes for Qt 6

Elvis Stansvik elvstone at gmail.com
Thu May 14 18:12:34 CEST 2020


Den tors 14 maj 2020 15:46Marc Mutz via Development <
development at qt-project.org> skrev:

> On 2020-05-13 17:17, Matthew Woehlke wrote:
> [...]
> > Non-owning QString is dangerous. QStringLiteral is less dangerous
> > because it is almost never used with non-rodata storage (and indeed, I
> > would consider any such usage highly suspect, if not outright broken).
> > QString::fromRawData is dangerous, but "obviously" so.
> >
> > We should not implement any way of creating a non-owning QString that
> > is not explicit, and if we adhere to that, I don't see us *not*
> > wanting QStringView in many instances.
>
> I must be crazy, but ... +1!
>

*chuckle* :)


> Thanks,
> Marc
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200514/6bdca816/attachment.html>


More information about the Development mailing list