forked from qt-creator/qt-creator
Remove NULL tests for Core::ICore::settings()
It cannot really be NULL Change-Id: I7231e00754464347dc5750249f751cda7f831930 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -47,8 +47,7 @@ CompletionSettingsPage::CompletionSettingsPage(QObject *parent)
|
||||
: TextEditor::TextEditorOptionsPage(parent)
|
||||
, m_page(0)
|
||||
{
|
||||
if (QSettings *s = Core::ICore::settings())
|
||||
m_commentsSettings.fromSettings(QLatin1String(CPPTOOLS_SETTINGSGROUP), s);
|
||||
m_commentsSettings.fromSettings(QLatin1String(CPPTOOLS_SETTINGSGROUP), Core::ICore::settings());
|
||||
|
||||
setId(QLatin1String("P.Completion"));
|
||||
setDisplayName(tr("Completion"));
|
||||
@@ -142,8 +141,7 @@ void CompletionSettingsPage::apply()
|
||||
m_commentsSettings.m_enableDoxygen = m_page->enableDoxygenCheckBox->isChecked();
|
||||
m_commentsSettings.m_generateBrief = m_page->generateBriefCheckBox->isChecked();
|
||||
m_commentsSettings.m_leadingAsterisks = m_page->leadingAsterisksCheckBox->isChecked();
|
||||
if (QSettings *s = Core::ICore::settings())
|
||||
m_commentsSettings.toSettings(QLatin1String(CPPTOOLS_SETTINGSGROUP), s);
|
||||
m_commentsSettings.toSettings(QLatin1String(CPPTOOLS_SETTINGSGROUP), Core::ICore::settings());
|
||||
|
||||
emit commentsSettingsChanged(m_commentsSettings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user