diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-11 10:02:04 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-11 10:02:04 +0000 |
commit | c4c5e3e9d6371f699d6c0ff196f1ed992644d82e (patch) | |
tree | 04faa4d9e8ae850267bc496db8b08dd4d83593a9 /vcl/unx/gtk | |
parent | 92161bdc9e0cb8c8983048e3ad01421f96965b99 (diff) |
#i10000#: for-scope, again
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/app/gtkdata.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx index f0f8f78be3a6..64e1d5e9d9c6 100644 --- a/vcl/unx/gtk/app/gtkdata.cxx +++ b/vcl/unx/gtk/app/gtkdata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gtkdata.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2004-03-11 10:14:22 $ + * last change: $Author: hr $ $Date: 2004-03-11 11:02:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -423,7 +423,8 @@ void GtkXLib::Init() osl_getExecutableFile( &aParam.pData ); osl_getSystemPathFromFileURL( aParam.pData, &aBin.pData ); pCmdLineAry[0] = g_strdup( OUStringToOString( aBin, aEnc ).getStr() ); - for (int i=0; i<nParams; i++) + int i; + for (i=0; i<nParams; i++) { osl_getCommandArg(i, &aParam.pData ); OString aBParam( OUStringToOString( aParam, aEnc ) ); @@ -443,7 +444,7 @@ void GtkXLib::Init() // init gtk/gdk gtk_init_check( &nParams, &pCmdLineAry ); - for (int i = 0; i < nParams; i++ ) + for (i = 0; i < nParams; i++ ) g_free( pCmdLineAry[i] ); delete pCmdLineAry; |