Requested code changes

This commit is contained in:
Vladimir Svyatski 2017-06-27 14:39:58 +03:00
parent 701f3d6054
commit a42ac00d3c

View File

@ -31,9 +31,9 @@ void CsvParserModel::setFilename(const QString& filename) {
} }
QString CsvParserModel::getFileInfo(){ QString CsvParserModel::getFileInfo(){
QString a(tr("%n byte(s), ", Q_NULLPTR, getFileSize())); QString a(tr("%n byte(s), ", nullptr, getFileSize()));
a.append(tr("%n row(s), ", Q_NULLPTR, getCsvRows())); a.append(tr("%n row(s), ", nullptr, getCsvRows()));
a.append(tr("%n column(s)", Q_NULLPTR, qMax(0, getCsvCols() - 1))); a.append(tr("%n column(s)", nullptr, qMax(0, getCsvCols() - 1)));
return a; return a;
} }