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
d6fdebc5
Kaydet (Commit)
d6fdebc5
authored
Kas 05, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1000852 Uncaught exception
Change-Id: Iaab0c992497b7d6b2da67cf65ade099c784c7a94
üst
f177ab81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
33 deletions
+41
-33
gengal.cxx
svx/source/gengal/gengal.cxx
+41
-33
No files found.
svx/source/gengal/gengal.cxx
Dosyayı görüntüle @
d6fdebc5
...
...
@@ -275,45 +275,53 @@ ReadResponseFile(std::vector<INetURLObject> & rFiles, OUString const& rInput)
int
GalApp
::
Main
()
{
OUString
aPath
,
aDestDir
;
OUString
aName
(
"Default name"
);
std
::
vector
<
INetURLObject
>
aFiles
;
for
(
sal_uInt32
i
=
0
;
i
<
GetCommandLineParamCount
();
i
++
)
try
{
OUString
aParam
=
GetCommandLineParam
(
i
);
OUString
aPath
,
aDestDir
;
OUString
aName
(
"Default name"
);
std
::
vector
<
INetURLObject
>
aFiles
;
if
(
aParam
.
startsWith
(
"-env:"
)
)
continue
;
else
if
(
aParam
==
"--help"
||
aParam
==
"-h"
)
return
PrintHelp
();
else
if
(
aParam
==
"--build-tree"
)
for
(
sal_uInt32
i
=
0
;
i
<
GetCommandLineParamCount
();
i
++
)
{
mbRelativeURLs
=
true
;
mbInBuildTree
=
true
;
OUString
aParam
=
GetCommandLineParam
(
i
);
if
(
aParam
.
startsWith
(
"-env:"
)
)
continue
;
else
if
(
aParam
==
"--help"
||
aParam
==
"-h"
)
return
PrintHelp
();
else
if
(
aParam
==
"--build-tree"
)
{
mbRelativeURLs
=
true
;
mbInBuildTree
=
true
;
}
else
if
(
aParam
==
"--name"
)
aName
=
GetCommandLineParam
(
++
i
);
else
if
(
aParam
==
"--path"
)
aPath
=
Smartify
(
GetCommandLineParam
(
++
i
)
).
GetMainURL
(
INetURLObject
::
NO_DECODE
);
else
if
(
aParam
==
"--destdir"
)
aDestDir
=
GetCommandLineParam
(
++
i
);
else
if
(
aParam
==
"--relative-urls"
)
mbRelativeURLs
=
true
;
else
if
(
aParam
==
"--number-from"
)
fprintf
(
stderr
,
"--number-from is deprecated, themes now "
"have filenames based on their names
\n
"
);
else
if
(
aParam
==
"--filenames"
)
ReadResponseFile
(
aFiles
,
GetCommandLineParam
(
++
i
));
else
aFiles
.
push_back
(
Smartify
(
aParam
)
);
}
else
if
(
aParam
==
"--name"
)
aName
=
GetCommandLineParam
(
++
i
);
else
if
(
aParam
==
"--path"
)
aPath
=
Smartify
(
GetCommandLineParam
(
++
i
)
).
GetMainURL
(
INetURLObject
::
NO_DECODE
);
else
if
(
aParam
==
"--destdir"
)
aDestDir
=
GetCommandLineParam
(
++
i
);
else
if
(
aParam
==
"--relative-urls"
)
mbRelativeURLs
=
true
;
else
if
(
aParam
==
"--number-from"
)
fprintf
(
stderr
,
"--number-from is deprecated, themes now "
"have filenames based on their names
\n
"
);
else
if
(
aParam
==
"--filenames"
)
ReadResponseFile
(
aFiles
,
GetCommandLineParam
(
++
i
));
else
aFiles
.
push_back
(
Smartify
(
aParam
)
);
}
if
(
aFiles
.
empty
()
)
return
PrintHelp
();
if
(
aFiles
.
empty
()
)
return
PrintHelp
();
createTheme
(
aName
,
aPath
,
aDestDir
,
aFiles
,
mbRelativeURLs
);
createTheme
(
aName
,
aPath
,
aDestDir
,
aFiles
,
mbRelativeURLs
);
}
catch
(
const
uno
::
Exception
&
e
)
{
SAL_WARN
(
"vcl.app"
,
"Fatal exception: "
<<
e
.
Message
);
return
EXIT_FAILURE
;
}
return
EXIT_SUCCESS
;
}
...
...
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