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:
Christian Kandeler
2019-01-23 14:42:55 +01:00
parent 527c579237
commit de8ef0c066

View File

@@ -248,10 +248,10 @@ void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsComboBox()
QCOMPARE(qPrintable(disabledComboBox->currentText()), "fgh");
}
static const char *iconInsideResource(const QString &relativePathToIcon)
static QString iconInsideResource(const QString &relativePathToIcon)
{
const QDir resourcePath(Core::ICore::resourcePath());
return resourcePath.filePath(relativePathToIcon).toLocal8Bit().data();
return resourcePath.filePath(relativePathToIcon);
}
void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsIconList()