X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fundo.cpp;h=8277c70e4ef91bec9e41fc21f3341656bf3ebcc0;hb=18d60f90d7603cb420150739251cf98519c57406;hp=9910fb98a1b68ac2bc7495b8af64eb0a492058a8;hpb=dac8329952745dbb494bad1c301e44bab05ec0db;p=xonotic%2Fnetradiant.git diff --git a/radiant/undo.cpp b/radiant/undo.cpp index 9910fb98..8277c70e 100644 --- a/radiant/undo.cpp +++ b/radiant/undo.cpp @@ -57,7 +57,7 @@ DebugScopeTimer( const char* operation ) class RadiantUndoSystem : public UndoSystem { -INTEGER_CONSTANT( MAX_UNDO_LEVELS, 1024 ); +UINT_CONSTANT( MAX_UNDO_LEVELS, 1024 ); class Snapshot { @@ -380,22 +380,22 @@ void UndoLevels_importString( RadiantUndoSystem& undo, const char* value ){ Int_importString( levels, value ); undo.setLevels( levels ); } -typedef ReferenceCaller1 UndoLevelsImportStringCaller; +typedef ReferenceCaller UndoLevelsImportStringCaller; void UndoLevels_exportString( const RadiantUndoSystem& undo, const StringImportCallback& importer ){ Int_exportString( static_cast( undo.getLevels() ), importer ); } -typedef ConstReferenceCaller1 UndoLevelsExportStringCaller; +typedef ConstReferenceCaller UndoLevelsExportStringCaller; #include "generic/callback.h" void UndoLevelsImport( RadiantUndoSystem& self, int value ){ self.setLevels( value ); } -typedef ReferenceCaller1 UndoLevelsImportCaller; +typedef ReferenceCaller UndoLevelsImportCaller; void UndoLevelsExport( const RadiantUndoSystem& self, const IntImportCallback& importCallback ){ importCallback( static_cast( self.getLevels() ) ); } -typedef ConstReferenceCaller1 UndoLevelsExportCaller; +typedef ConstReferenceCaller UndoLevelsExportCaller; void Undo_constructPreferences( RadiantUndoSystem& undo, PreferencesPage& page ){ @@ -406,7 +406,7 @@ void Undo_constructPage( RadiantUndoSystem& undo, PreferenceGroup& group ){ Undo_constructPreferences( undo, page ); } void Undo_registerPreferencesPage( RadiantUndoSystem& undo ){ - PreferencesDialog_addSettingsPage( ReferenceCaller1( undo ) ); + PreferencesDialog_addSettingsPage( ReferenceCaller( undo ) ); } class UndoSystemDependencies : public GlobalPreferenceSystemModuleRef