Commit 64a0a72a authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Erik Verbruggen
Browse files

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: default avatarLorenz Haas <lykurg@gmail.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
parent 5efe24b6
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment