Skip to content

Commit

Permalink
Use explicit casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 31, 2024
1 parent 1b7ec13 commit 05a1eb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ImportXlsx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ ImportXlsx::retrieveRowCountAndColumnTypes(const QString& sheetName)
{
if (isRowStart(xmlStreamReader))
{
rowCountDigitsInXlsx =
xmlStreamReader.attributes().value(R_TAG).size();
rowCountDigitsInXlsx = static_cast<int>(
xmlStreamReader.attributes().value(R_TAG).size());
++rowCounter;
}

Expand Down Expand Up @@ -632,8 +632,8 @@ std::pair<bool, QVector<QVector<QVariant>>> ImportXlsx::getLimitedData(
currentDataRow;
currentDataRow = QVector<QVariant>(templateDataRow);
}
rowCountDigitsInXlsx =
xmlStreamReader.attributes().value(R_TAG).size();
rowCountDigitsInXlsx = static_cast<int>(
xmlStreamReader.attributes().value(R_TAG).size());
++rowCounter;
updateProgress(rowCounter, rowLimit, lastEmittedPercent);
}
Expand Down

0 comments on commit 05a1eb2

Please sign in to comment.