170 else |
170 else |
171 m_unmatched->primitives << primitive; |
171 m_unmatched->primitives << primitive; |
172 } |
172 } |
173 |
173 |
174 // Sort the categories. Note that we only do this here because we needed the original order for pattern matching. |
174 // Sort the categories. Note that we only do this here because we needed the original order for pattern matching. |
175 qSort (m_categories.begin(), m_categories.end(), |
175 ::sort(m_categories.begin(), m_categories.end(), |
176 [](PrimitiveCategory* const& one, PrimitiveCategory* const& other) -> bool |
176 [](PrimitiveCategory* const& one, PrimitiveCategory* const& other) -> bool |
177 { |
177 { |
178 return one->name() < other->name(); |
178 return one->name() < other->name(); |
179 }); |
179 }); |
180 } |
180 } |