From 72edbf54afe12b47bfe9c3a030d6c6ae695bda18 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 17 Jan 2013 14:28:30 +0200 Subject: [PATCH] Use the new API for defining types in a collection --- source/3d/catalogue.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/3d/catalogue.cpp b/source/3d/catalogue.cpp index 7169c60..935219e 100644 --- a/source/3d/catalogue.cpp +++ b/source/3d/catalogue.cpp @@ -16,11 +16,11 @@ Catalogue3D::Catalogue3D(Catalogue &c): catalogue(c), endpoint_mesh((GL::NORMAL3, GL::VERTEX3)) { - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added)); catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added)); -- 2.43.0