mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Enclose strings in QLatin1String
This commit is contained in:
parent
5045fa6dcd
commit
4a68df084e
@ -563,12 +563,12 @@ void Parser::parse_impl(const QByteArray &feedData)
|
|||||||
|
|
||||||
while (xml.readNextStartElement())
|
while (xml.readNextStartElement())
|
||||||
{
|
{
|
||||||
if (xml.name() == "rss")
|
if (xml.name() == QLatin1String("rss"))
|
||||||
{
|
{
|
||||||
// Find channels
|
// Find channels
|
||||||
while (xml.readNextStartElement())
|
while (xml.readNextStartElement())
|
||||||
{
|
{
|
||||||
if (xml.name() == "channel")
|
if (xml.name() == QLatin1String("channel"))
|
||||||
{
|
{
|
||||||
parseRSSChannel(xml);
|
parseRSSChannel(xml);
|
||||||
foundChannel = true;
|
foundChannel = true;
|
||||||
@ -580,7 +580,7 @@ void Parser::parse_impl(const QByteArray &feedData)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (xml.name() == "feed")
|
if (xml.name() == QLatin1String("feed"))
|
||||||
{ // Atom feed
|
{ // Atom feed
|
||||||
parseAtomChannel(xml);
|
parseAtomChannel(xml);
|
||||||
foundChannel = true;
|
foundChannel = true;
|
||||||
|
@ -127,18 +127,18 @@ void ProgramUpdater::rssDownloadFinished(const Net::DownloadResult &result)
|
|||||||
|
|
||||||
if (xml.isStartElement())
|
if (xml.isStartElement())
|
||||||
{
|
{
|
||||||
if (xml.name() == "item")
|
if (xml.name() == QLatin1String("item"))
|
||||||
inItem = true;
|
inItem = true;
|
||||||
else if (inItem && xml.name() == "link")
|
else if (inItem && (xml.name() == QLatin1String("link")))
|
||||||
updateLink = getStringValue(xml);
|
updateLink = getStringValue(xml);
|
||||||
else if (inItem && xml.name() == "type")
|
else if (inItem && (xml.name() == QLatin1String("type")))
|
||||||
type = getStringValue(xml);
|
type = getStringValue(xml);
|
||||||
else if (inItem && xml.name() == "version")
|
else if (inItem && (xml.name() == QLatin1String("version")))
|
||||||
version = getStringValue(xml);
|
version = getStringValue(xml);
|
||||||
}
|
}
|
||||||
else if (xml.isEndElement())
|
else if (xml.isEndElement())
|
||||||
{
|
{
|
||||||
if (inItem && xml.name() == "item")
|
if (inItem && (xml.name() == QLatin1String("item")))
|
||||||
{
|
{
|
||||||
if (type.compare(OS_TYPE, Qt::CaseInsensitive) == 0)
|
if (type.compare(OS_TYPE, Qt::CaseInsensitive) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user