diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-07-18 23:15:52 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-07-20 12:45:53 +0000 |
commit | 7d33f0f061fe5282512ccb576847a82877c31154 (patch) | |
tree | 39eeea36a9c0bd7ebc32dd2a9632dd75cccb48b6 /src/plugins/texteditor/behaviorsettingspage.cpp | |
parent | 2f0a395017d7a72c5c03e4f3876640ad253bb213 (diff) | |
download | qt-creator-7d33f0f061fe5282512ccb576847a82877c31154.tar.gz |
TextEditor: Initialize some members
Coverity was complaining about these, in some places even rightly so:-)
Change-Id: Ia85cdd2c74f05edba6f0d4534aa9f2ee2a750595
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/behaviorsettingspage.cpp')
-rw-r--r-- | src/plugins/texteditor/behaviorsettingspage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/texteditor/behaviorsettingspage.cpp b/src/plugins/texteditor/behaviorsettingspage.cpp index 22b0443932..1c26e30a54 100644 --- a/src/plugins/texteditor/behaviorsettingspage.cpp +++ b/src/plugins/texteditor/behaviorsettingspage.cpp @@ -57,13 +57,13 @@ struct BehaviorSettingsPage::BehaviorSettingsPagePrivate const BehaviorSettingsPageParameters m_parameters; QPointer<QWidget> m_widget; - Internal::Ui::BehaviorSettingsPage *m_page; + Internal::Ui::BehaviorSettingsPage *m_page = nullptr; void init(); - CodeStylePool *m_defaultCodeStylePool; - SimpleCodeStylePreferences *m_codeStyle; - SimpleCodeStylePreferences *m_pageCodeStyle; + CodeStylePool *m_defaultCodeStylePool = nullptr; + SimpleCodeStylePreferences *m_codeStyle = nullptr; + SimpleCodeStylePreferences *m_pageCodeStyle = nullptr; TypingSettings m_typingSettings; StorageSettings m_storageSettings; BehaviorSettings m_behaviorSettings; @@ -72,7 +72,7 @@ struct BehaviorSettingsPage::BehaviorSettingsPagePrivate BehaviorSettingsPage::BehaviorSettingsPagePrivate::BehaviorSettingsPagePrivate (const BehaviorSettingsPageParameters &p) - : m_parameters(p), m_page(0), m_pageCodeStyle(0) + : m_parameters(p) { } |