From dee65098f10147dfd132a31725078309be5d524a Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 7 Sep 2004 13:57:21 +0000 Subject: [PATCH] Cleanup --- stepmania/src/archutils/Darwin/Crash.cpp | 30 +++++++++++++----------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/stepmania/src/archutils/Darwin/Crash.cpp b/stepmania/src/archutils/Darwin/Crash.cpp index 9f048de7b7..8d0e6bf6f5 100644 --- a/stepmania/src/archutils/Darwin/Crash.cpp +++ b/stepmania/src/archutils/Darwin/Crash.cpp @@ -5,19 +5,21 @@ void InformUserOfCrash( const CString &sPath ) { - CFStringRef error = CFStringCreateWithCString(NULL, - "StepMania has crashed. Debug information has been output to\n" - "\n" - " " + sPath + "\n" - "\n" - "Please report a bug at:\n" - "\n" - " http://sourceforge.net/tracker/?func=add&group_id=37892&atid=421366", - kCFStringEncodingASCII); - CFStringRef OK = CFStringCreateWithCString(NULL, "Open crashinfo", kCFStringEncodingASCII); - CFStringRef Cancel = CFStringCreateWithCString(NULL, "Cancel", kCFStringEncodingASCII); - struct AlertStdCFStringAlertParamRec params = {kStdCFStringAlertVersionOne, true, false, OK, Cancel, NULL, - kAlertStdAlertOKButton, kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen, NULL}; + CFStringRef error; + + error = CFStringCreateWithCString(kCFAllocatorDefault, + "StepMania has crashed. Debug " + "information has been output to\n\n " + + sPath + "\n\nPlease report a bug at:" + "\n\nhttp://sourceforge.net/tracker/" + "?func=add&group_id=37892&atid=421366", + kCFStringEncodingASCII); + CFStringRef OK = CFSTR("Open crashinfo"); + CFStringRef Cancel = CFSTR("Cancel"); + struct AlertStdCFStringAlertParamRec params = {kStdCFStringAlertVersionOne, + true, false, OK, Cancel, NULL, kAlertStdAlertOKButton, + kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen, + NULL}; DialogRef dialog; SInt16 button; @@ -27,7 +29,7 @@ void InformUserOfCrash( const CString &sPath ) switch (button) { case kAlertStdAlertOKButton: - // This is lazy, and easy, and it _should_ work. + // This is lazy, and easy, and it seems to work. if (system(NULL)) system("open '" + sPath + "'"); else