Commit 45be14a4 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 039be8fd
......@@ -330,7 +330,7 @@ void AdBlockCustomList::loadSubscription(const QStringList &disabledRules)
stream << ddg1 << endl;
}
if (!rules.contains(QLatin1String("\n") + ddg2)) {
if (!rules.contains(QLatin1Char('\n') + ddg2)) {
stream << ddg2 << endl;
}
}
......
......@@ -119,10 +119,10 @@ void AdBlockCreateFilterDialog::slotUpdateFilter()
{
QString pattern = mUi->filtercustom->text();
if (mUi->atTheBeginning->isChecked()) {
pattern = QStringLiteral("|") + pattern;
pattern = QLatin1Char('|') + pattern;
}
if (mUi->atTheEnd->isChecked()) {
pattern += QLatin1String("|");
pattern += QLatin1Char('|');
}
const QString collapseValue = mUi->collapseBlocked->itemData(mUi->collapseBlocked->currentIndex()).toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment