Changeset View
Changeset View
Standalone View
Standalone View
src/utils/attribute.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | void Attribute::setDynamicAttribute(ActivationType type, Attribute::Ptr attribute) | 87 | void Attribute::setDynamicAttribute(ActivationType type, Attribute::Ptr attribute) | ||
88 | { | 88 | { | ||
89 | if (type < 0 || type > ActivateCaretIn) { | 89 | if (type < 0 || type > ActivateCaretIn) { | ||
90 | return; | 90 | return; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | d->dynamicAttributes[type] = attribute; | 93 | d->dynamicAttributes[type] = std::move(attribute); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | QString Attribute::name() const | 96 | QString Attribute::name() const | ||
97 | { | 97 | { | ||
98 | return stringProperty(AttributeName); | 98 | return stringProperty(AttributeName); | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | void Attribute::setName(const QString &name) | 101 | void Attribute::setName(const QString &name) | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |