Example of how to implement solution
-
I am getting a warning:
warning: ‘QStringList QString::split(const QString&, QString::SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use Qt::SplitBehavior variant instead [-Wdeprecated-declarations] split (":", QString::SkipEmptyParts);
The source code this relates to:
QStringList const ns = QString (namespace_.c_str ()).split (":", QString::SkipEmptyParts);
How to I implement the suggestion in the warning?
-
I am getting a warning:
warning: ‘QStringList QString::split(const QString&, QString::SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use Qt::SplitBehavior variant instead [-Wdeprecated-declarations] split (":", QString::SkipEmptyParts);
The source code this relates to:
QStringList const ns = QString (namespace_.c_str ()).split (":", QString::SkipEmptyParts);
How to I implement the suggestion in the warning?
@SPlatten said in Example of how to implement solution:
How to I implement the suggestion in the warning?
Doing what the warning suggests: use Qt::SkipEmptyParts instead of QString::SkipEmptyParts...
-
@SPlatten said in Example of how to implement solution:
How to I implement the suggestion in the warning?
Doing what the warning suggests: use Qt::SkipEmptyParts instead of QString::SkipEmptyParts...