MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeStyle

Method removeStyle

kdevplatform/shell/sourceformatterselectionedit.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 void removeStyle(const SourceFormatterStyle& style)
131 {
132 assertExistingStyle(style);
133 Q_ASSERT_X(style.name().startsWith(userStyleNamePrefix), Q_FUNC_INFO, "Cannot remove a predefined style.");
134 const auto removedCount = m_styles.erase(style.name());
135 Q_ASSERT(removedCount == 1);
136 }
137
138 SourceFormatterStyle& addNewStyle()
139 {

Callers 1

deleteStyleMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected