Skip to content

Commit 1237ca2

Browse files
committed
Fix clazy warning "Missing reference on non-trivial type (class QTextCharFormat)"
1 parent 619459d commit 1237ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KDReports/KDReportsTableElement.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using CellContentMap = QMap<QPair<int /*row*/, int /*column*/>, Cell>;
2727
class KDReports::TableElementPrivate
2828
{
2929
public:
30-
void createCell(QTextTable *textTable, ReportBuilder &builder, int row, int column, const Cell &cell, QTextCharFormat charFormat) const;
30+
void createCell(QTextTable *textTable, ReportBuilder &builder, int row, int column, const Cell &cell, const QTextCharFormat &charFormat) const;
3131

3232
KDReports::CellContentMap m_cellContentMap;
3333
int m_rowCount = 0;
@@ -107,7 +107,7 @@ KDReports::Cell &KDReports::TableElement::cell(int row, int column)
107107
return d->m_cellContentMap[coord]; // find or create
108108
}
109109

110-
void KDReports::TableElementPrivate::createCell(QTextTable *textTable, ReportBuilder &builder, int row, int column, const Cell &cell, QTextCharFormat charFormat) const
110+
void KDReports::TableElementPrivate::createCell(QTextTable *textTable, ReportBuilder &builder, int row, int column, const Cell &cell, const QTextCharFormat &charFormat) const
111111
{
112112
if (cell.columnSpan() > 1 || cell.rowSpan() > 1)
113113
textTable->mergeCells(row, column, cell.rowSpan(), cell.columnSpan());

0 commit comments

Comments
 (0)