mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 11:31:00 -06:00
Use nullptr where possible
This commit is contained in:
@@ -6,7 +6,7 @@ CSVParser::CSVParser(bool trimfields, char fieldseparator, char quotechar)
|
||||
: m_bTrimFields(trimfields)
|
||||
, m_cFieldSeparator(fieldseparator)
|
||||
, m_cQuoteChar(quotechar)
|
||||
, m_pCSVProgress(0)
|
||||
, m_pCSVProgress(nullptr)
|
||||
, m_nBufferSize(4096)
|
||||
{
|
||||
}
|
||||
@@ -120,7 +120,7 @@ CSVParser::ParserResult CSVParser::parse(csvRowFunction insertFunction, QTextStr
|
||||
m_pCSVProgress->start();
|
||||
|
||||
// Initialise row buffer and get pointer to the first field
|
||||
record = { 0, 0, 0 };
|
||||
record = { nullptr, 0, 0 };
|
||||
increaseRowSize(record);
|
||||
field = record.fields;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user