Commit af185d1e authored by Leandro Melo's avatar Leandro Melo
Browse files

Generic highlighter: Satisfying coverity checks.

parent 15faf23e
......@@ -65,7 +65,7 @@ Highlighter::Highlighter(QTextDocument *parent) :
Highlighter::~Highlighter()
{}
Highlighter::BlockData::BlockData() : m_foldingIndentDelta(0)
Highlighter::BlockData::BlockData() : m_foldingIndentDelta(0), m_originalObservableState(-1)
{}
Highlighter::BlockData::~BlockData()
......
......@@ -34,9 +34,13 @@ using namespace TextEditor;
using namespace Internal;
ItemData::ItemData() :
m_italic(false),
m_italicSpecified(false),
m_bold(false),
m_boldSpecified(false),
m_underlined(false),
m_underlinedSpecified(false),
m_strikedOut(false),
m_strikedOutSpecified(false),
m_isCustomized(false)
{}
......
......@@ -69,9 +69,6 @@ public:
bool isCustomized() const;
private:
QString m_style;
QColor m_color;
QColor m_selectionColor;
bool m_italic;
bool m_italicSpecified;
bool m_bold;
......@@ -81,6 +78,9 @@ private:
bool m_strikedOut;
bool m_strikedOutSpecified;
bool m_isCustomized;
QString m_style;
QColor m_color;
QColor m_selectionColor;
};
} // namespace Internal
......
......@@ -215,7 +215,8 @@ bool RegExprRule::doMatchSucceed(const QString &text,
// Keyword
KeywordRule::KeywordRule(const QSharedPointer<HighlightDefinition> &definition) :
m_overrideGlobal(false)
m_overrideGlobal(false),
m_localCaseSensitivity(Qt::CaseSensitive)
{
setDefinition(definition);
}
......
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