GCC doesn't like me using QStringLiteral here

Wed, 15 Jun 2022 12:32:40 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 15 Jun 2022 12:32:40 +0300
changeset 224
54fd83d4db9c
parent 223
ce81db996275
child 225
551c136b459e

GCC doesn't like me using QStringLiteral here

src/settings.h file | annotate | diff | comparison | revisions
--- a/src/settings.h	Wed Jun 15 12:17:29 2022 +0300
+++ b/src/settings.h	Wed Jun 15 12:32:40 2022 +0300
@@ -30,7 +30,7 @@
 // Setting definitions
 
 // Rendering options
-SETTING(Locale, QStringLiteral("system"))
+SETTING(Locale, QString{"system"})
 SETTING(BackgroundColor, (QColor{48, 48, 48}))
 SETTING(MainColor, (QColor{255, 255, 64}))
 SETTING(SelectedColor, (QColor{32, 32, 224}))

mercurial