summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appmain.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-02-09 10:36:33 +0000
committerMathias Bauer <mba@openoffice.org>2001-02-09 10:36:33 +0000
commit3f91979ca0ca8ee4d99220e2ab692695bd09e549 (patch)
treeb31b6c7f4d6a4657997bce1d045b4848d1d09781 /sfx2/source/appl/appmain.cxx
parentb31655cb337a01e850c83eecc5380cb8b1701ab6 (diff)
#83217#: use new vos::OExtCommandLine
Diffstat (limited to 'sfx2/source/appl/appmain.cxx')
-rw-r--r--sfx2/source/appl/appmain.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/sfx2/source/appl/appmain.cxx b/sfx2/source/appl/appmain.cxx
index 9d0d67af50..2c4ffb8cc7 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;