forked from qt-creator/qt-creator
Fix ProjectExplorerPlugin::testJsonWizardsIconList()
We returned a pointer to temporary data from a function.
Amends 6796839da3.
Change-Id: I920789b344c93158092ef23e4bb8019cc9c312c9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -248,10 +248,10 @@ void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsComboBox()
|
|||||||
QCOMPARE(qPrintable(disabledComboBox->currentText()), "fgh");
|
QCOMPARE(qPrintable(disabledComboBox->currentText()), "fgh");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *iconInsideResource(const QString &relativePathToIcon)
|
static QString iconInsideResource(const QString &relativePathToIcon)
|
||||||
{
|
{
|
||||||
const QDir resourcePath(Core::ICore::resourcePath());
|
const QDir resourcePath(Core::ICore::resourcePath());
|
||||||
return resourcePath.filePath(relativePathToIcon).toLocal8Bit().data();
|
return resourcePath.filePath(relativePathToIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsIconList()
|
void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsIconList()
|
||||||
|
|||||||
Reference in New Issue
Block a user