diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-02-09 10:36:33 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-02-09 10:36:33 +0000 |
commit | 066a027b2c18356b597a43ed06f3b2410d8cd9ef (patch) | |
tree | 98bdefa511f78a3a52162f75e54bb09ecd07ff6f | |
parent | ef315311bdef271a27e6348c66fe54515745f714 (diff) |
#83217#: use new vos::OExtCommandLine
-rw-r--r-- | sfx2/source/appl/appmain.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sfx2/source/appl/appmain.cxx b/sfx2/source/appl/appmain.cxx index 776b43fc748c..c858c0f936e9 100644 --- a/sfx2/source/appl/appmain.cxx +++ b/sfx2/source/appl/appmain.cxx @@ -2,9 +2,9 @@ * * $RCSfile: appmain.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mba $ $Date: 2000-12-04 14:31:02 $ + * last change: $Author: mba $ $Date: 2001-02-09 11:36:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -91,6 +91,7 @@ #include <svtools/itempool.hxx> #include <svtools/urihelper.hxx> #include <svtools/helpopt.hxx> +#include <vos/process.hxx> #include "appimp.hxx" #include "sfxtypes.hxx" @@ -272,10 +273,15 @@ USHORT SfxApplication::ParseCommandLine_Impl() BOOL bPrintEvent = FALSE; BOOL bOpenEvent = TRUE; - USHORT nCount = Application::GetCommandLineParamCount(); + + ::vos::OExtCommandLine aCmdLine; + USHORT nCount = aCmdLine.getCommandArgCount(); for( USHORT i=0; i < nCount; i++ ) { - String aArg = Application::GetCommandLineParam( i ); + String aArg; + ::rtl::OUString aDummy; + aCmdLine.getCommandArg( i, aDummy ); + aArg = aDummy; if ( aArg.EqualsIgnoreCaseAscii("-minimized") == sal_True ) pAppData_Impl->bMinimized = TRUE; |