File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,12 +289,12 @@ void AdBlockCustomList::loadSubscription(const QStringList& disabledRules) {
289289
290290 stream.setCodec (" UTF-8" );
291291
292- if (!rules.contains (ddg1 + QL1S ( " \n " ))) {
293- stream << ddg1 << Qt::endl ;
292+ if (!rules.contains (ddg1 + QL1C ( ' \n ' ))) {
293+ stream << ddg1 << QL1C ( ' \n ' ) ;
294294 }
295295
296- if (!rules.contains (QL1S ( " \n " ) + ddg2)) {
297- stream << ddg2 << Qt::endl ;
296+ if (!rules.contains (QL1C ( ' \n ' ) + ddg2)) {
297+ stream << ddg2 << QL1C ( ' \n ' ) ;
298298 }
299299 }
300300
@@ -313,12 +313,12 @@ void AdBlockCustomList::saveSubscription() {
313313 QTextStream textStream (&file);
314314
315315 textStream.setCodec (" UTF-8" );
316- textStream << " Title: " << title () << Qt::endl ;
317- textStream << " Url: " << url ().toString () << Qt::endl ;
318- textStream << " [Adblock Plus 1.1.1]" << Qt::endl ;
316+ textStream << " Title: " << title () << QL1C ( ' \n ' ) ;
317+ textStream << " Url: " << url ().toString () << QL1C ( ' \n ' ) ;
318+ textStream << " [Adblock Plus 1.1.1]" << QL1C ( ' \n ' ) ;
319319
320320 for (const AdBlockRule* rule : m_rules) {
321- textStream << rule->filter () << Qt::endl ;
321+ textStream << rule->filter () << QL1C ( ' \n ' ) ;
322322 }
323323
324324 file.close ();
You can’t perform that action at this time.
0 commit comments