Linux compilation fix

This commit is contained in:
Jakub Melka 2022-07-23 10:25:13 +02:00
parent 86a2b23a14
commit eb17cdbed1
2 changed files with 2 additions and 2 deletions

View File

@ -907,7 +907,7 @@ void PDFPageContentStreamBuilder::replaceResources(PDFObjectReference contentStr
{ {
// Jakub Melka: we must rename the item // Jakub Melka: we must rename the item
QByteArray newSubkeyString = subkeyString; QByteArray newSubkeyString = subkeyString;
PDFInteger k = 0; int k = 0;
while (oldSd->hasKey(newSubkeyString)) while (oldSd->hasKey(newSubkeyString))
{ {
newSubkeyString = subkeyString + "_" + QByteArray::number(++k); newSubkeyString = subkeyString + "_" + QByteArray::number(++k);

View File

@ -184,7 +184,7 @@ void PDFPageContentEditorWidget::updateItemsInListWidget()
Q_ASSERT(element); Q_ASSERT(element);
QListWidgetItem* item = new QListWidgetItem(element->getDescription()); QListWidgetItem* item = new QListWidgetItem(element->getDescription());
item->setData(Qt::UserRole, elementId); item->setData(Qt::UserRole, int(elementId));
ui->itemsListWidget->addItem(item); ui->itemsListWidget->addItem(item);
} }