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/textmark.h | |
parent | 2f0a395017d7a72c5c03e4f3876640ad253bb213 (diff) |
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/textmark.h')
-rw-r--r-- | src/plugins/texteditor/textmark.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index ca484a8538..317fb31de9 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -121,9 +121,9 @@ private: QString m_fileName; int m_lineNumber = 0; Priority m_priority = LowPriority; - bool m_visible = false; QIcon m_icon; - Utils::Theme::Color m_color; + Utils::Theme::Color m_color = Utils::Theme::TextColorNormal; + bool m_visible = false; bool m_hasColor = false; Core::Id m_category; double m_widthFactor = 1.0; |