Spreadsheet: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:10:37 +01:00
parent 669b22252a
commit 2a2b8835c0
28 changed files with 157 additions and 157 deletions

View File

@@ -81,12 +81,12 @@ int SheetModel::columnCount(const QModelIndex &parent) const
QVariant SheetModel::data(const QModelIndex &index, int role) const
{
static const Cell * emptyCell = new Cell(CellAddress(0, 0), 0);
static const Cell * emptyCell = new Cell(CellAddress(0, 0), nullptr);
int row = index.row();
int col = index.column();
const Cell * cell = sheet->getCell(CellAddress(row, col));
if (cell == 0)
if (cell == nullptr)
cell = emptyCell;
//#define DEBUG_DEPS