forked from qt-creator/qt-creator
TaskTree: Qt-ify the code (part 4)
13. Make s_activeStorageWarning a QLatin1StringView, otherwise
having "qstring.h:1007:5: note: declared private here"
on ubuntu-24.04-x64.
Amends e331329e4f
Change-Id: I6f5784f00b2894daa48128edd50bf57b54686acf
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
|
|
||||||
|
using namespace Qt::StringLiterals;
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
@@ -1298,11 +1299,11 @@ const void *Loop::valuePtr() const
|
|||||||
|
|
||||||
using StoragePtr = void *;
|
using StoragePtr = void *;
|
||||||
|
|
||||||
static QString s_activeStorageWarning =
|
static constexpr QLatin1StringView s_activeStorageWarning =
|
||||||
"The referenced storage is not reachable in the running tree. "
|
"The referenced storage is not reachable in the running tree. "
|
||||||
"A nullptr will be returned which might lead to a crash in the calling code. "
|
"A nullptr will be returned which might lead to a crash in the calling code. "
|
||||||
"It is possible that no storage was added to the tree, "
|
"It is possible that no storage was added to the tree, "
|
||||||
"or the storage is not reachable from where it is referenced.";
|
"or the storage is not reachable from where it is referenced."_L1;
|
||||||
|
|
||||||
class StorageThreadData
|
class StorageThreadData
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user