From 0c49eff73226d777f06f35aacd3a3e4d60f63bf2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 1 Jun 2004 01:32:11 +0000 Subject: [PATCH] cleanup --- stepmania/src/StepMania.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 4368ef3afc..3679e1ec22 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -858,17 +858,17 @@ static void WriteLogHeader() LOG->Info( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d", 1900+now.tm_year, now.tm_mon+1, now.tm_mday, now.tm_hour+1, now.tm_min, now.tm_sec ); - if(g_argc > 1) { + if( g_argc > 1 ) + { CString args; - for(int i = 1; i < g_argc; ++i) { - CString CurArg = g_argv[i]; - - if(i>1) + for( int i = 1; i < g_argc; ++i ) + { + if( i>1 ) args += " "; // surround all params with some marker, as they might have whitespace. // using [[ and ]], as they are not likely to be in the params. - args += "[[" + CurArg + "]]"; + args += "[[" + g_argv[i] + "]]"; } LOG->Info( "Command line args (count=%d): %s", (g_argc - 1), args.c_str()); }