Fix build.

This commit is contained in:
Roman Telezhynskyi 2021-06-04 10:00:14 +03:00
parent 18c0d7454f
commit 598f29a0a9

View File

@ -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()));
}
}