From 598f29a0a9cf484d29291321232cefcc8c257b52 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Jun 2021 10:00:14 +0300 Subject: [PATCH] Fix build. --- src/app/puzzle/xml/vplayoutfilereader.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/puzzle/xml/vplayoutfilereader.cpp b/src/app/puzzle/xml/vplayoutfilereader.cpp index 99aa0d455..6ac0db5ca 100644 --- a/src/app/puzzle/xml/vplayoutfilereader.cpp +++ b/src/app/puzzle/xml/vplayoutfilereader.cpp @@ -248,7 +248,11 @@ void VPLayoutFileReader::ReadSheet(VPLayout *layout) sheet->SetSheetMargins(ReadMargins()); break; case 3: // pieces +#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) ReadSheetPieces(sheet.get()); +#else + ReadSheetPieces(sheet.data()); +#endif break; default: qCDebug(MLReader, "Ignoring tag %s", qUtf8Printable(name().toString())); @@ -355,7 +359,7 @@ void VPLayoutFileReader::AssertRootTag(const QString &tag) const { if (not (isStartElement() && name() == tag)) { - throw VException(tr("Unexpected tag %1 in line %2").arg(name()).arg(lineNumber())); + throw VException(tr("Unexpected tag %1 in line %2").arg(name().toString()).arg(lineNumber())); } }