Skip to content

Commit

Permalink
try to fix compilation for ubuntu 18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Aug 24, 2023
1 parent 2959814 commit 3db6d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/latexrepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ bool LatexRepository::loadStaticPackageList(const QString &file)
if (!xml.readNextStartElement()) return false;
while (xml.readNextStartElement()) {
if (xml.name() == QString("package")) {
QString key = QString("%1").arg(xml.attributes().value(QString(""),QString("key")));
QString name = QString("%1").arg(xml.attributes().value(QString(""),QString("name")));
QString caption = QString("%1").arg(xml.attributes().value(QString(""),QString("caption")));
QString key = xml.attributes().value(QString(""),QString("key")).toString();
QString name = xml.attributes().value(QString(""),QString("name")).toString();
QString caption = xml.attributes().value(QString(""),QString("caption")).toString();
packages.insert(key, LatexPackageInfo(name, caption));
}
xml.skipCurrentElement();
Expand Down

0 comments on commit 3db6d46

Please sign in to comment.