Skip to content

Commit

Permalink
Initialize emptyColName with default value in ImportSpreadsheet class.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 13, 2025
1 parent 8cd7a1a commit 76b3eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/eible/ImportSpreadsheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class EIBLE_EXPORT ImportSpreadsheet : public QObject
QIODevice& ioDevice_;

/// If empty column is encountered than insert defined string.
QString emptyColName_;
QString emptyColName_{QStringLiteral("---")};

static constexpr int NOT_SET_COLUMN{-1};

Expand Down
4 changes: 1 addition & 3 deletions src/ImportSpreadsheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#include "Utilities.h"

ImportSpreadsheet::ImportSpreadsheet(QIODevice& ioDevice)
: ioDevice_{ioDevice},
emptyColName_{QStringLiteral("---")},
zip_{&ioDevice_}
: ioDevice_{ioDevice}, zip_{&ioDevice_}
{
}

Expand Down

0 comments on commit 76b3eb0

Please sign in to comment.