]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/md3model/model.h
Callback: remove fixed-arity wrappers
[xonotic/netradiant.git] / plugins / md3model / model.h
index 946ee198ebd3da766ece72effeea5cc999330d75..5f03d73495b83dd278527ca4fa5cf45f77089d4b 100644 (file)
@@ -236,7 +236,7 @@ surfaces_t m_surfaces;
 
 AABB m_aabb_local;
 public:
-Callback m_lightsChanged;
+Callback<void()> m_lightsChanged;
 
 ~Model(){
        for ( surfaces_t::iterator i = m_surfaces.begin(); i != m_surfaces.end(); ++i )
@@ -346,7 +346,7 @@ Cullable& get( NullType<Cullable>){
 void lightsChanged(){
        m_lightList->lightsChanged();
 }
-typedef MemberCaller<ModelInstance, &ModelInstance::lightsChanged> LightsChangedCaller;
+typedef MemberCaller<ModelInstance, void(), &ModelInstance::lightsChanged> LightsChangedCaller;
 
 void constructRemaps(){
        ModelSkin* skin = NodeTypeCast<ModelSkin>::cast( path().parent() );
@@ -397,9 +397,9 @@ ModelInstance( const scene::Path& path, scene::Instance* parent, Model& model )
 ~ModelInstance(){
        destroyRemaps();
 
-       Instance::setTransformChangedCallback( Callback() );
+       Instance::setTransformChangedCallback( Callback<void()>() );
 
-       m_model.m_lightsChanged = Callback();
+       m_model.m_lightsChanged = Callback<void()>();
        GlobalShaderCache().detach( *this );
 }