From 38c39207e99b6446b3a5b09667f2706c64aae91a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 24 Nov 2005 17:31:35 +0000 Subject: [PATCH] Fixed style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/utilsexc.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 2247c389d2..b8de30fdff 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -710,15 +710,17 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler) #ifndef __WXWINCE__ dwFlags |= CREATE_DEFAULT_ERROR_MODE ; #else - wxString ModuleName; - wxString Arguments; - { int idx = command.Find( wxT(' ') ); - if( idx >= 0 ) { - ModuleName = command.Left(idx); - Arguments = command.Mid(idx+1); - } else { - ModuleName = command; - } + wxString moduleName; + wxString arguments; + int idx = command.Find( wxT(' ') ); + if( idx >= 0 ) + { + moduleName = command.Left(idx); + arguments = command.Mid(idx+1); + } + else + { + moduleName = command; } #endif @@ -728,9 +730,9 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler) // Win32 allows for null #ifdef __WXWINCE__ (wxChar *) - ModuleName.c_str(), // application name + moduleName.c_str(), // application name (wxChar *) - Arguments.c_str(), // arguments + arguments.c_str(), // arguments #else NULL, // application name (use only cmd line)