aboutsummaryrefslogtreecommitdiff
path: root/launcher/news/NewsEntry.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 10:36:09 +0200
committerGitHub <noreply@github.com>2023-08-15 10:36:09 +0200
commit4b06255cc26933379107745d95f72097737d2a9b (patch)
tree60e00c8389bb2d8e4be492531beb788a253d1b6a /launcher/news/NewsEntry.cpp
parent3aba7f8fec45c7c87be486d8f6b5c96f69facf93 (diff)
parent1939e3e6ed3d2d2d4199d90154333cc8892eafeb (diff)
downloadPrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.gz
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.bz2
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.zip
Merge pull request #1486 from PrismLauncher/staging
Diffstat (limited to 'launcher/news/NewsEntry.cpp')
-rw-r--r--launcher/news/NewsEntry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/news/NewsEntry.cpp b/launcher/news/NewsEntry.cpp
index cf6d3e46..ea25f2e5 100644
--- a/launcher/news/NewsEntry.cpp
+++ b/launcher/news/NewsEntry.cpp
@@ -39,14 +39,14 @@ inline QString childValue(const QDomElement& element, const QString& childName,
{
QDomNodeList nodes = element.elementsByTagName(childName);
if (nodes.count() > 0) {
- QDomElement element = nodes.at(0).toElement();
- return element.text();
+ QDomElement elem = nodes.at(0).toElement();
+ return elem.text();
} else {
return defaultVal;
}
}
-bool NewsEntry::fromXmlElement(const QDomElement& element, NewsEntry* entry, QString* errorMsg)
+bool NewsEntry::fromXmlElement(const QDomElement& element, NewsEntry* entry, [[maybe_unused]] QString* errorMsg)
{
QString title = childValue(element, "title", tr("Untitled"));
QString content = childValue(element, "content", tr("No content."));