Pass const QString by reference instead of by value

This commit is contained in:
Debao Zhang
2013-10-24 16:30:56 +08:00
parent 377a9adfd1
commit afbf4effbf
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ int Worksheet::write(int row, int column, const QVariant &value, Format *format)
}
//convert the "A1" notation to row/column notation
int Worksheet::write(const QString row_column, const QVariant &value, Format *format)
int Worksheet::write(const QString &row_column, const QVariant &value, Format *format)
{
QPoint pos = xl_cell_to_rowcol(row_column);
if (pos == QPoint(-1, -1)) {