summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-20 20:58:02 +0100
committerLaurent Montel <[email protected]>2018-01-20 20:58:02 +0100
commitc7a310accd383e14fe684808dca38419ba47f0e8 (patch)
tree1ffbd18156067e92b7cb2d069d774b2063a4bae8
parent590cd3a860539023bccc12cef2429fff5d4b24a9 (diff)
Const'ify
-rw-r--r--src/akregator_part.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/akregator_part.cpp b/src/akregator_part.cpp
index 9971805..7091085 100644
--- a/src/akregator_part.cpp
+++ b/src/akregator_part.cpp
@@ -364,14 +364,15 @@ void Part::slotSettingsChanged()
Syndication::FileRetriever::setUseCache(Settings::useHTMLCache());
- QStringList fonts;
- fonts.append(Settings::standardFont());
- fonts.append(Settings::fixedFont());
- fonts.append(Settings::sansSerifFont());
- fonts.append(Settings::serifFont());
- fonts.append(Settings::standardFont());
- fonts.append(Settings::standardFont());
- fonts.append(QStringLiteral("0"));
+ const QStringList fonts {
+ Settings::standardFont(),
+ Settings::fixedFont(),
+ Settings::sansSerifFont(),
+ Settings::serifFont(),
+ Settings::standardFont(),
+ Settings::standardFont(),
+ QStringLiteral("0")
+ };
Settings::setFonts(fonts);
if (Settings::minimumFontSize() > Settings::mediumFontSize()) {