Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b855cd62
Kaydet (Commit)
b855cd62
authored
Ock 20, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Code clean up.
üst
9807566e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
unoexe.cxx
cpputools/source/unoexe/unoexe.cxx
+8
-8
No files found.
cpputools/source/unoexe/unoexe.cxx
Dosyayı görüntüle @
b855cd62
...
@@ -160,7 +160,7 @@ static const char arUsingText[] =
...
@@ -160,7 +160,7 @@ static const char arUsingText[] =
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
static
sal_Bool
readOption
(
OUString
*
pValue
,
const
sal_Char
*
pOpt
,
static
sal_Bool
readOption
(
OUString
*
pValue
,
const
sal_Char
*
pOpt
,
sal_Int32
*
pnIndex
,
const
OUString
&
aArg
)
sal_
u
Int32
*
pnIndex
,
const
OUString
&
aArg
)
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
const
OUString
dash
(
RTL_CONSTASCII_USTRINGPARAM
(
"-"
));
const
OUString
dash
(
RTL_CONSTASCII_USTRINGPARAM
(
"-"
));
...
@@ -178,7 +178,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
...
@@ -178,7 +178,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
++
(
*
pnIndex
);
++
(
*
pnIndex
);
rtl_getAppCommandArg
(
*
pnIndex
,
&
pValue
->
pData
);
rtl_getAppCommandArg
(
*
pnIndex
,
&
pValue
->
pData
);
if
(
*
pnIndex
>=
(
sal_Int32
)
rtl_getAppCommandArgCount
()
||
pValue
->
copy
(
1
).
equals
(
dash
))
if
(
*
pnIndex
>=
rtl_getAppCommandArgCount
()
||
pValue
->
copy
(
1
).
equals
(
dash
))
{
{
OUStringBuffer
buf
(
32
);
OUStringBuffer
buf
(
32
);
buf
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"incomplete option
\"
-"
)
);
buf
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"incomplete option
\"
-"
)
);
...
@@ -217,7 +217,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
...
@@ -217,7 +217,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
}
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
static
sal_Bool
readOption
(
sal_Bool
*
pbOpt
,
const
sal_Char
*
pOpt
,
static
sal_Bool
readOption
(
sal_Bool
*
pbOpt
,
const
sal_Char
*
pOpt
,
sal_Int32
*
pnIndex
,
const
OUString
&
aArg
)
sal_
u
Int32
*
pnIndex
,
const
OUString
&
aArg
)
{
{
const
OUString
dashdash
(
RTL_CONSTASCII_USTRINGPARAM
(
"--"
));
const
OUString
dashdash
(
RTL_CONSTASCII_USTRINGPARAM
(
"--"
));
OUString
aOpt
=
OUString
::
createFromAscii
(
pOpt
);
OUString
aOpt
=
OUString
::
createFromAscii
(
pOpt
);
...
@@ -610,9 +610,10 @@ void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
...
@@ -610,9 +610,10 @@ void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
using
namespace
unoexe
;
using
namespace
unoexe
;
SAL_IMPLEMENT_MAIN
_WITH_ARGS
(
argc
,
)
SAL_IMPLEMENT_MAIN
(
)
{
{
if
(
argc
<=
1
)
sal_uInt32
nCount
=
rtl_getAppCommandArgCount
();
if
(
nCount
==
0
)
{
{
out
(
arUsingText
);
out
(
arUsingText
);
return
0
;
return
0
;
...
@@ -636,8 +637,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
...
@@ -636,8 +637,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
bool
bNewRegistryMimic
=
false
;
bool
bNewRegistryMimic
=
false
;
OUString
aReadWriteRegistry
;
OUString
aReadWriteRegistry
;
sal_Int32
nPos
=
0
;
sal_uInt32
nPos
=
0
;
sal_Int32
nCount
=
(
sal_Int32
)
rtl_getAppCommandArgCount
();
// read up to arguments
// read up to arguments
while
(
nPos
<
nCount
)
while
(
nPos
<
nCount
)
{
{
...
@@ -728,7 +728,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
...
@@ -728,7 +728,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
aParams
.
realloc
(
nCount
-
nPos
);
aParams
.
realloc
(
nCount
-
nPos
);
OUString
*
pParams
=
aParams
.
getArray
();
OUString
*
pParams
=
aParams
.
getArray
();
sal_Int32
nOffset
=
nPos
;
sal_
u
Int32
nOffset
=
nPos
;
for
(
;
nPos
<
nCount
;
++
nPos
)
for
(
;
nPos
<
nCount
;
++
nPos
)
{
{
if
(
rtl_getAppCommandArg
(
nPos
,
&
pParams
[
nPos
-
nOffset
].
pData
)
if
(
rtl_getAppCommandArg
(
nPos
,
&
pParams
[
nPos
-
nOffset
].
pData
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment