From de8ef0c0662c0e666b1aaa4b324d720fb7358288 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 23 Jan 2019 14:42:55 +0100 Subject: Fix ProjectExplorerPlugin::testJsonWizardsIconList() We returned a pointer to temporary data from a function. Amends 6796839da3. Change-Id: I920789b344c93158092ef23e4bb8019cc9c312c9 Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp index 890291f701..9a5947cdd1 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp @@ -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() -- cgit v1.2.1