src/primitives.cpp

changeset 1320
bdb4804bc09c
parent 1319
39d7a9642eea
child 1323
05b3e173c900
equal deleted inserted replaced
1319:39d7a9642eea 1320:bdb4804bc09c
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 }

mercurial