Skip to content

Commit

Permalink
Reduce scope of ImportOds object.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 4, 2025
1 parent d160397 commit 596009e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ bool importFile(ImportSpreadsheet& importer, const QString& fileName)
bool importFiles()
{
QFile odsFile(QStringLiteral(":/example.ods"));
ImportOds importOds(odsFile);
if (!importFile(importOds, odsFile.fileName()))
if (ImportOds importOds(odsFile);
!importFile(importOds, odsFile.fileName()))
return false;

QFile xlsxFile(QStringLiteral(":/example.xlsx"));
Expand Down

0 comments on commit 596009e

Please sign in to comment.