Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 16baff10 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 3ba5bf10
......@@ -104,11 +104,11 @@ void AddFeedDialog::accept()
m_feed = new Feed(Kernel::self()->storage());
// HACK: make weird wordpress links ("feed:http://foobar/rss") work
if (mFeedUrl.startsWith(QStringLiteral("feed:http"))) {
if (mFeedUrl.startsWith(QLatin1String("feed:http"))) {
mFeedUrl = mFeedUrl.right(mFeedUrl.length() - 5);
}
if (!mFeedUrl.contains(QStringLiteral(":/"))) {
if (!mFeedUrl.contains(QLatin1String(":/"))) {
mFeedUrl.prepend(QLatin1String("https://"));
}
......
......@@ -60,7 +60,7 @@ QString buildTitle(const QString &description)
tagName = rx.cap(2);
if (tagName == QLatin1String("SCRIPT") || tagName == QLatin1String("script")) {
toReplace = rx.cap(0); // strip tag AND tag contents
} else if (tagName.startsWith(QStringLiteral("br")) || tagName.startsWith(QStringLiteral("BR"))) {
} else if (tagName.startsWith(QLatin1String("br")) || tagName.startsWith(QLatin1String("BR"))) {
toReplace = rx.cap(1);
replaceWith = QLatin1Char(' ');
} else {
......@@ -206,7 +206,7 @@ Article::Private::Private(const ItemPtr &article, Feed *feed_, Backend::FeedStor
//archive->setComments(guid, article.comments());
//archive->setCommentsLink(guid, article.commentsLink().url());
archive->setGuidIsPermaLink(guid, false);
archive->setGuidIsHash(guid, guid.startsWith(QStringLiteral("hash:")));
archive->setGuidIsHash(guid, guid.startsWith(QLatin1String("hash:")));
const time_t datePublished = article->datePublished();
if (datePublished > 0) {
pubDate.setTime_t(datePublished);
......
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