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:
Erik Verbruggen
2014-09-11 10:43:54 +02:00
committed by Erik Verbruggen
parent 5efe24b6b3
commit 64a0a72a54

View File

@@ -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();