| 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 | { |