diff --git a/qt/scientific_interfaces/Inelastic/Common/InterfaceUtils.cpp b/qt/scientific_interfaces/Inelastic/Common/InterfaceUtils.cpp index ab4e82b90777..cf766ab6ea80 100644 --- a/qt/scientific_interfaces/Inelastic/Common/InterfaceUtils.cpp +++ b/qt/scientific_interfaces/Inelastic/Common/InterfaceUtils.cpp @@ -102,7 +102,7 @@ QStringList getFBSuffixes(std::string const &interfaceName, std::string const &f QStringList getWSSuffixes(std::string const &interfaceName, std::string const &fileType) { if (!restrictInputDataByName()) { - return QStringList{""}; + return QStringList{}; } return toQStringList(getInterfaceProperty(interfaceName, "WORKSPACE-SUFFIXES", fileType), ","); } diff --git a/qt/scientific_interfaces/Inelastic/test/Common/InterfaceUtilsTest.h b/qt/scientific_interfaces/Inelastic/test/Common/InterfaceUtilsTest.h index 14470b5a723c..52823bd168b3 100644 --- a/qt/scientific_interfaces/Inelastic/test/Common/InterfaceUtilsTest.h +++ b/qt/scientific_interfaces/Inelastic/test/Common/InterfaceUtilsTest.h @@ -33,7 +33,7 @@ class InterfaceUtilsTest : public CxxTest::TestSuite { InterfaceUtils::restrictInputDataByName = mockRestrictInputDataByName; // There are many similar functions in the interface, this test will try only one pair of such functions - TS_ASSERT_EQUALS(getResolutionWSSuffixes("Iqt"), QStringList({""})); + TS_ASSERT_EQUALS(getResolutionWSSuffixes("Iqt"), QStringList()); TS_ASSERT_EQUALS(getResolutionFBSuffixes("Iqt"), QStringList({".nxs"})); }