Skip to content

Commit

Permalink
Added missing QStringLiteral in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Apr 26, 2021
1 parent 91f96a2 commit 65583b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgssettingsentry.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 65583b4

Please sign in to comment.