]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/entitylist.cpp
Callback: remove fixed-arity wrappers
[xonotic/netradiant.git] / radiant / entitylist.cpp
index 290f8bac0e1c7bb11a3d13075a6745ca32df0bdd..9218027d51d3b67c2b85ece9c203bb0e2e8f4de6 100644 (file)
@@ -41,7 +41,7 @@
 #include "treemodel.h"
 
 void RedrawEntityList();
-typedef FreeCaller<RedrawEntityList> RedrawEntityListCaller;
+typedef FreeCaller<void(), RedrawEntityList> RedrawEntityListCaller;
 
 
 class EntityList
@@ -377,7 +377,7 @@ void EntityList_Construct(){
 
        GlobalPreferenceSystem().registerPreference( "EntityInfoDlg", WindowPositionTrackerImportStringCaller( getEntityList().m_positionTracker ), WindowPositionTrackerExportStringCaller( getEntityList().m_positionTracker ) );
 
-       typedef FreeCaller1<const Selectable&, EntityList_SelectionChanged> EntityListSelectionChangedCaller;
+       typedef FreeCaller<void(const Selectable&), EntityList_SelectionChanged> EntityListSelectionChangedCaller;
        GlobalSelectionSystem().addSelectionChangeCallback( EntityListSelectionChangedCaller() );
 }
 void EntityList_Destroy(){