src/model.cpp

changeset 73
97df974b5ed5
parent 51
1a9eac27698d
child 76
7c4a63a02632
--- a/src/model.cpp	Fri Mar 06 23:45:44 2020 +0200
+++ b/src/model.cpp	Mon Mar 09 14:21:54 2020 +0200
@@ -88,7 +88,7 @@
 	return this->cachedPolygons;
 }
 
-QModelIndex Model::lookup(ldraw::Id id) const
+QModelIndex Model::lookup(ldraw::id_t id) const
 {
 	// FIXME: This linear search will probably cause performance issues
 	for (std::size_t i = 0; i < this->body.size(); i += 1)
@@ -101,7 +101,7 @@
 	return {};
 }
 
-ldraw::Id Model::resolve(const QModelIndex& index) const
+ldraw::id_t Model::resolve(const QModelIndex& index) const
 {
 	return this->objectAt(index)->id;
 }

mercurial