Skip to content

Commit be4ba4a

Browse files
committed
Refactor adjustColumnTypeSize method to change column parameter from reference to value.
1 parent 2cf33a4 commit be4ba4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/eible/ImportXlsx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class EIBLE_EXPORT ImportXlsx : public ImportSpreadsheet
121121
QStringList createSheetNames() const;
122122

123123
void adjustColumnTypeSize(QVector<ColumnType>& columnTypes,
124-
int& column) const;
124+
int column) const;
125125

126126
std::optional<QVector<std::pair<QString, QString>>> sheets_{std::nullopt};
127127
std::optional<QStringList> sharedStrings_{std::nullopt};

src/ImportXlsx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ QStringList ImportXlsx::createSheetNames() const
646646
}
647647

648648
void ImportXlsx::adjustColumnTypeSize(QVector<ColumnType>& columnTypes,
649-
int& column) const
649+
int column) const
650650
{
651651
if (column >= columnTypes.size())
652652
{

0 commit comments

Comments
 (0)