]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/preferencesystem.cpp
Callback: remove fixed-arity wrappers
[xonotic/netradiant.git] / include / preferencesystem.cpp
index 6152cb14865140d173ff2daf6df1eb9daaf34436..1786f50bf3d67dd859d007ef4a54841807c80f46 100644 (file)
@@ -75,11 +75,11 @@ void importString( const char* value ){
        m_string = value;
        m_observer.onChanged();
 }
-typedef MemberCaller1<StringPreference, const char*, &StringPreference::importString> ImportStringCaller;
+typedef MemberCaller<StringPreference, void(const char*), &StringPreference::importString> ImportStringCaller;
 void exportString( StringImportCallback& importer ){
        importer( m_string.c_str() );
 }
-typedef MemberCaller1<StringPreference, StringImportCallback&, &StringPreference::exportString> ExportStringCaller;
+typedef MemberCaller<StringPreference, void(StringImportCallback&), &StringPreference::exportString> ExportStringCaller;
 };
 
 inline void int_export( int i, StringImportCallback& importer ){
@@ -113,11 +113,11 @@ void importString( const char* value ){
        m_int = int_import( value );
        m_observer.onChanged();
 }
-typedef MemberCaller1<IntPreference, const char*, &IntPreference::importString> ImportStringCaller;
+typedef MemberCaller<IntPreference, void(const char*), &IntPreference::importString> ImportStringCaller;
 void exportString( StringImportCallback& importer ){
        int_export( m_int, importer );
 }
-typedef MemberCaller1<IntPreference, StringImportCallback&, &IntPreference::exportString> ExportStringCaller;
+typedef MemberCaller<IntPreference, void(StringImportCallback&), &IntPreference::exportString> ExportStringCaller;
 };
 
 class IntPreferenceImporter