forked from qt-creator/qt-creator
ClangCodeModel: Modernize
modernize-use-nullptr modernize-use-auto modernize-use-override modernize-use-equals-default modernize-use-using Change-Id: I386f885860c01574035c69226240fe3b8e38392c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -130,7 +130,7 @@ const QChar *BatchFileLineTokenizer::advanceToTokenBegin()
|
||||
|
||||
forever {
|
||||
if (atEnd())
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
if (atQuotationMark()) {
|
||||
m_isWithinQuotation = true;
|
||||
@@ -151,7 +151,7 @@ const QChar *BatchFileLineTokenizer::advanceToTokenEnd()
|
||||
if (m_isWithinQuotation) {
|
||||
if (atEnd()) {
|
||||
qWarning("ClangBatchFileProcessor: error: unfinished quotation.");
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (atQuotationMark())
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
|
||||
public:
|
||||
Command(const CommandContext &context) : m_commandContext(context) {}
|
||||
virtual ~Command() {}
|
||||
virtual ~Command() = default;
|
||||
|
||||
const CommandContext &context() const { return m_commandContext; }
|
||||
virtual bool run() { return true; }
|
||||
|
||||
Reference in New Issue
Block a user