Commit 31182d3a authored by Dominik Haumann's avatar Dominik Haumann Committed by Jan Paul Batrina
Browse files

Use in-class member initialization for color picker plugin

parent 73d33784
......@@ -35,8 +35,6 @@ bool ColorPickerInlineNoteProvider::s_putPreviewAfterColor = true;
ColorPickerInlineNoteProvider::ColorPickerInlineNoteProvider(KTextEditor::Document *doc)
: m_doc(doc)
, m_startChangedLines(-1)
, m_previousNumLines(-1)
{
// initialize the color regex
updateColorMatchingCriteria();
......
......@@ -38,8 +38,9 @@ public:
private:
KTextEditor::Document *m_doc;
int m_startChangedLines;
int m_previousNumLines;
int m_startChangedLines = -1;
int m_previousNumLines = -1;
// line, <colorNoteIndex, otherColorIndex>
mutable QHash<int, QHash<int, int>> m_colorNoteIndices;
......
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