tst_QByteArray: add Qt::StringLiterals to the namespace scope
... and remove all previous function-level occurrences. Pick-to: 6.5 Change-Id: I90df40922e3aed15efc04e885d9f54c577a948b6 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
9a4da4569a
commit
c06bdc316f
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "../shared/test_number_shared.h"
|
#include "../shared/test_number_shared.h"
|
||||||
|
|
||||||
|
using namespace Qt::StringLiterals;
|
||||||
|
|
||||||
class tst_QByteArray : public QObject
|
class tst_QByteArray : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -2189,7 +2191,6 @@ void tst_QByteArray::literals()
|
|||||||
void tst_QByteArray::userDefinedLiterals()
|
void tst_QByteArray::userDefinedLiterals()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
using namespace Qt::StringLiterals;
|
|
||||||
QByteArray str = "abcd"_ba;
|
QByteArray str = "abcd"_ba;
|
||||||
|
|
||||||
QVERIFY(str.size() == 4);
|
QVERIFY(str.size() == 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user