Changeset View
Changeset View
Standalone View
Standalone View
src/syntax/katehighlight.cpp
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Line(s) | |||||
382 | 382 | | |||
383 | void KateHighlighting::getKateExtendedAttributeListCopy(const QString &schema, QVector<KTextEditor::Attribute::Ptr> &list, KConfig *cfg) | 383 | void KateHighlighting::getKateExtendedAttributeListCopy(const QString &schema, QVector<KTextEditor::Attribute::Ptr> &list, KConfig *cfg) | ||
384 | { | 384 | { | ||
385 | QVector<KTextEditor::Attribute::Ptr> attributes; | 385 | QVector<KTextEditor::Attribute::Ptr> attributes; | ||
386 | getKateExtendedAttributeList(schema, attributes, cfg); | 386 | getKateExtendedAttributeList(schema, attributes, cfg); | ||
387 | 387 | | |||
388 | list.clear(); | 388 | list.clear(); | ||
389 | 389 | | |||
390 | foreach (const KTextEditor::Attribute::Ptr &attribute, attributes) { | 390 | for (const KTextEditor::Attribute::Ptr &attribute : qAsConst(attributes)) { | ||
391 | list.append(KTextEditor::Attribute::Ptr(new KTextEditor::Attribute(*attribute.data()))); | 391 | list.append(KTextEditor::Attribute::Ptr(new KTextEditor::Attribute(*attribute.data()))); | ||
392 | } | 392 | } | ||
393 | } | 393 | } | ||
394 | 394 | | |||
395 | void KateHighlighting::setKateExtendedAttributeList(const QString &schema, QVector<KTextEditor::Attribute::Ptr> &list, KConfig *cfg, bool writeDefaultsToo) | 395 | void KateHighlighting::setKateExtendedAttributeList(const QString &schema, QVector<KTextEditor::Attribute::Ptr> &list, KConfig *cfg, bool writeDefaultsToo) | ||
396 | { | 396 | { | ||
397 | KConfigGroup config(cfg ? cfg : KateHlManager::self()->getKConfig(), | 397 | KConfigGroup config(cfg ? cfg : KateHlManager::self()->getKConfig(), | ||
398 | QLatin1String("Highlighting ") + iName + QLatin1String(" - Schema ") + schema); | 398 | QLatin1String("Highlighting ") + iName + QLatin1String(" - Schema ") + schema); | ||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |