From a695a4f0ff799dd25ded369be64c6b8a14ca3738 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 13 Jul 2020 11:08:38 +0200 Subject: [PATCH] fix macosx build --- .../network-web/adblock/adblocksubscription.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/librssguard/network-web/adblock/adblocksubscription.cpp b/src/librssguard/network-web/adblock/adblocksubscription.cpp index 6e4c4602e..2a7318bea 100644 --- a/src/librssguard/network-web/adblock/adblocksubscription.cpp +++ b/src/librssguard/network-web/adblock/adblocksubscription.cpp @@ -289,12 +289,12 @@ void AdBlockCustomList::loadSubscription(const QStringList& disabledRules) { stream.setCodec("UTF-8"); - if (!rules.contains(ddg1 + QL1S("\n"))) { - stream << ddg1 << Qt::endl; + if (!rules.contains(ddg1 + QL1C('\n'))) { + stream << ddg1 << QL1C('\n'); } - if (!rules.contains(QL1S("\n") + ddg2)) { - stream << ddg2 << Qt::endl; + if (!rules.contains(QL1C('\n') + ddg2)) { + stream << ddg2 << QL1C('\n'); } } @@ -313,12 +313,12 @@ void AdBlockCustomList::saveSubscription() { QTextStream textStream(&file); textStream.setCodec("UTF-8"); - textStream << "Title: " << title() << Qt::endl; - textStream << "Url: " << url().toString() << Qt::endl; - textStream << "[Adblock Plus 1.1.1]" << Qt::endl; + textStream << "Title: " << title() << QL1C('\n'); + textStream << "Url: " << url().toString() << QL1C('\n'); + textStream << "[Adblock Plus 1.1.1]" << QL1C('\n'); for (const AdBlockRule* rule : m_rules) { - textStream << rule->filter() << Qt::endl; + textStream << rule->filter() << QL1C('\n'); } file.close();