Skip to content
Permalink
Browse files
Added missing QStringLiteral in tests
  • Loading branch information
domi4484 committed Apr 26, 2021
1 parent 91f96a2 commit 65583b4a051e1ef1903fba6e481bef6dce3612bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/core/testqgssettingsentry.cpp
@@ -101,7 +101,7 @@ void TestQgsSettingsEntry::enumValue()
// Make sure the setting is not existing
QgsSettings().remove( settingsKey, QgsSettings::NoSection );

QgsSettingsEntryEnumFlag settingsEntryEnum( settingsKey, QgsSettings::NoSection, QgsUnitTypes::LayoutMeters, "Layout unit" );
QgsSettingsEntryEnumFlag settingsEntryEnum( settingsKey, QgsSettings::NoSection, QgsUnitTypes::LayoutMeters, QStringLiteral( "Layout unit" ) );

// Check default value
QCOMPARE( settingsEntryEnum.defaultValue(), QgsUnitTypes::LayoutMeters );
@@ -150,7 +150,7 @@ void TestQgsSettingsEntry::flagValue()
// Make sure the setting is not existing
QgsSettings().remove( settingsKey, QgsSettings::NoSection );

QgsSettingsEntryEnumFlag settingsEntryFlag( settingsKey, QgsSettings::NoSection, pointAndLine, "Filters" );
QgsSettingsEntryEnumFlag settingsEntryFlag( settingsKey, QgsSettings::NoSection, pointAndLine, QStringLiteral( "Filters" ) );

// Check default value
QCOMPARE( settingsEntryFlag.defaultValue(), pointAndLine );

0 comments on commit 65583b4

Please sign in to comment.