Skip to content

Commit 76b3eb0

Browse files
committed
Initialize emptyColName with default value in ImportSpreadsheet class.
1 parent 8cd7a1a commit 76b3eb0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/eible/ImportSpreadsheet.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class EIBLE_EXPORT ImportSpreadsheet : public QObject
116116
QIODevice& ioDevice_;
117117

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

121121
static constexpr int NOT_SET_COLUMN{-1};
122122

src/ImportSpreadsheet.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#include "Utilities.h"
1010

1111
ImportSpreadsheet::ImportSpreadsheet(QIODevice& ioDevice)
12-
: ioDevice_{ioDevice},
13-
emptyColName_{QStringLiteral("---")},
14-
zip_{&ioDevice_}
12+
: ioDevice_{ioDevice}, zip_{&ioDevice_}
1513
{
1614
}
1715

0 commit comments

Comments
 (0)