From 274f5c98b84cb0a23f07b72e6d2cfa3cb782670c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Jun 2005 23:47:56 +0000 Subject: [PATCH] style (spacing) --- .../src/arch/Dialog/DialogDriver_Cocoa.cpp | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp b/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp index 9a798f3018..74186620c2 100644 --- a/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp +++ b/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp @@ -7,26 +7,29 @@ static SInt16 ShowAlert( int type, CFStringRef message, CFStringRef OK, CFStringRef cancel = NULL ) { - struct AlertStdCFStringAlertParamRec params = {kStdCFStringAlertVersionOne, true, false, OK, cancel, NULL, - kAlertStdAlertOKButton, kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen, 0}; + struct AlertStdCFStringAlertParamRec params = + { + kStdCFStringAlertVersionOne, true, false, OK, cancel, NULL, + kAlertStdAlertOKButton, kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen, 0 + }; DialogRef dialog; SInt16 result; OSErr err; - CreateStandardAlert(type, message, NULL, ¶ms, &dialog); - err = AutoSizeDialog(dialog); - ASSERT(err == noErr); - RunStandardAlert(dialog, NULL, &result); + CreateStandardAlert( type, message, NULL, ¶ms, &dialog ); + err = AutoSizeDialog( dialog ); + ASSERT( err == noErr ); + RunStandardAlert( dialog, NULL, &result ); return result; } void DialogDriver_Cocoa::OK( CString sMessage, CString sID ) { - CFStringRef message = CFStringCreateWithCString(NULL, sMessage, kCFStringEncodingASCII); - SInt16 result = ShowAlert(kAlertNoteAlert, message, CFSTR("OK"), CFSTR("Don't show again")); + CFStringRef message = CFStringCreateWithCString( NULL, sMessage, kCFStringEncodingASCII ); + SInt16 result = ShowAlert( kAlertNoteAlert, message, CFSTR("OK"), CFSTR("Don't show again") ); - CFRelease(message); + CFRelease( message ); if( result == kAlertStdAlertCancelButton ) Dialog::IgnoreMessage( sID ); } @@ -34,9 +37,9 @@ void DialogDriver_Cocoa::OK( CString sMessage, CString sID ) void DialogDriver_Cocoa::Error( CString sError, CString sID ) { CFStringRef error = CFStringCreateWithCString( NULL, sError, kCFStringEncodingASCII ); - ShowAlert(kAlertStopAlert, error, CFSTR("OK")); + ShowAlert( kAlertStopAlert, error, CFSTR("OK") ); - CFRelease(error); + CFRelease( error ); } // XXX: should show three options, not two