| 1297 | } |
| 1298 | |
| 1299 | void |
| 1300 | LayerPropertiesList::remove_cv_references (int cv_index, bool except) |
| 1301 | { |
| 1302 | std::vector<LayerPropertiesIterator> cv_ref; |
| 1303 | |
| 1304 | for (LayerPropertiesIterator l = begin_recursive (); !l.at_end (); ++l) { |
| 1305 | if (has_cv_ref (*l, cv_index) != except) { |
| 1306 | cv_ref.push_back (l); |
| 1307 | } |
| 1308 | } |
| 1309 | |
| 1310 | std::sort (cv_ref.begin (), cv_ref.end (), CompareLayerIteratorBottomUp ()); |
| 1311 | |
| 1312 | for (std::vector<LayerPropertiesIterator>::const_iterator ll = cv_ref.begin (); ll != cv_ref.end (); ++ll) { |
| 1313 | erase (*ll); |
| 1314 | } |
| 1315 | } |
| 1316 | |
| 1317 | static bool has_wildcard_layout (const LayerPropertiesNode &node, bool any) |
| 1318 | { |
no test coverage detected