forked from qt-creator/qt-creator
Beautifier: change QTC_CHECK to QTC_ASSERT.
Return when the check fails, so there won't be a nullptr deref 2 lines down. Change-Id: I4dd1ba13798a57700c486e4b1f24b45afb2837ad Reviewed-by: Lorenz Haas <lykurg@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
5efe24b6b3
commit
64a0a72a54
@@ -118,7 +118,7 @@ ConfigurationEditor::ConfigurationEditor(QWidget *parent)
|
||||
|
||||
void ConfigurationEditor::setSettings(AbstractSettings *settings)
|
||||
{
|
||||
QTC_CHECK(settings);
|
||||
QTC_ASSERT(settings, return);
|
||||
m_settings = settings;
|
||||
|
||||
QStringList keywords = m_settings->options();
|
||||
|
||||
Reference in New Issue
Block a user