Re: [Development] Using string literals in autotests

2024-04-02 Thread Edward Welbourne via Development
Andre' (28 March 2024 15:22) asked: > What was _qs's life time from invention to deprecation? > A bit more than a year? Yes: _qs was added in 6.2 (2021-03-04) and, in 6.4 (2022-03-21, when _s was added), declared deprecated from 6.8. Mistakes get made. We fix them as soon as we reasonably can

Re: [Development] Using string literals in autotests

2024-03-28 Thread apoenitz
On Thu, Mar 28, 2024 at 12:14:35PM +0100, Friedemann Kleint via Development wrote: > Hi, > > I'd say performance should be a consideration for autotests since they are > compiled and run over and over again in the CI. So, string theory should be > applied to avoid unnecessary conversions and

Re: [Development] Using string literals in autotests

2024-03-28 Thread Giuseppe D'Angelo via Development
Il 28/03/24 12:14, Friedemann Kleint via Development ha scritto: Hi, I'd say performance should be a consideration for autotests since they are compiled and run over and over again in the CI. So, string theory should be applied to avoid unnecessary conversions and allocations. Even it is

Re: [Development] Using string literals in autotests

2024-03-28 Thread Friedemann Kleint via Development
Hi, I'd say performance should be a consideration for autotests since they are compiled and run over and over again in the CI. So, string theory should be applied to avoid unnecessary conversions and allocations. Even it is considered a minor optimization, it will have an impact on energy

Re: [Development] Using string literals in autotests

2024-03-28 Thread Giuseppe D'Angelo via Development
On 28/03/2024 10:36, Axel Spoerl via Development wrote: Since _L1 usage is massive in corelib, I wonder whether there is a standard that everyone can apply when writing or reviewing autotests. If it exists and I have overlooked it, please forgive my negligence and point me to it. *

[Development] Using string literals in autotests

2024-03-28 Thread Axel Spoerl via Development
Hi, is there any documentation, blog post, wiki page, other source or guideline about usage of string literals in autotests? More specifically: The line QString ("I love QLatin1StringView"); ...triggers 'QString' is deprecated: Use fromUtf8, QStringLiteral, or QLatin1StringView. QString has