Skip to content

Commit

Permalink
Add missing constness.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 30, 2024
1 parent 7640564 commit 319070a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/eible/ExportXlsx.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class EIBLE_EXPORT ExportXlsx : public ExportData
QByteArray getContentEnding() override;

private:
const QByteArray& getCellTypeTag(const QVariant& cell);
const QByteArray& getCellTypeTag(const QVariant& cell) const;

void initColumnNames(int modelColumnCount);

Expand Down
2 changes: 1 addition & 1 deletion include/eible/ImportOds.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EIBLE_EXPORT ImportOds : public ImportSpreadsheet
retrieveRowCountAndColumnTypes(const QString& sheetName) override;

bool moveToSecondRow(const QString& sheetName, QuaZipFile& zipFile,
QXmlStreamReader& xmlStreamReader);
QXmlStreamReader& xmlStreamReader) const;

void skipToSheet(QXmlStreamReader& xmlStreamReader,
const QString& sheetName) const;
Expand Down
2 changes: 1 addition & 1 deletion src/ExportXlsx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ QByteArray ExportXlsx::getContentEnding()
return QByteArrayLiteral("</sheetData>");
}

const QByteArray& ExportXlsx::getCellTypeTag(const QVariant& cell)
const QByteArray& ExportXlsx::getCellTypeTag(const QVariant& cell) const
{
switch (cell.typeId())
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImportOds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ ImportOds::retrieveRowCountAndColumnTypes(const QString& sheetName)
}

bool ImportOds::moveToSecondRow(const QString& sheetName, QuaZipFile& zipFile,
QXmlStreamReader& xmlStreamReader)
QXmlStreamReader& xmlStreamReader) const
{
xmlStreamReader.setDevice(&zipFile);
skipToSheet(xmlStreamReader, sheetName);
Expand Down

0 comments on commit 319070a

Please sign in to comment.