Commit a4136d7a authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Dont use static for attribute as it is unnecessary

parent 6edfe5e8
......@@ -990,11 +990,8 @@ public:
if (!miface)
return;
auto mr = miface->newMovingRange(location);
static KTextEditor::Attribute::Ptr attr;
if (!attr) {
attr = new KTextEditor::Attribute;
attr->setUnderlineStyle(QTextCharFormat::SingleUnderline);
}
KTextEditor::Attribute::Ptr attr(new KTextEditor::Attribute);
attr->setUnderlineStyle(QTextCharFormat::SingleUnderline);
mr->setView(view);
mr->setAttribute(attr);
QTimer::singleShot(1000, doc, [mr] {
......
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