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
c3beba87
Kaydet (Commit)
c3beba87
authored
Tem 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706501 Uncaught exception
Change-Id: I435d189e6194d8d255ec88c4edad73d19a9bb5be
üst
6d28e240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
dp_package.cxx
desktop/source/deployment/registry/package/dp_package.cxx
+25
-11
No files found.
desktop/source/deployment/registry/package/dp_package.cxx
Dosyayı görüntüle @
c3beba87
...
...
@@ -1188,20 +1188,34 @@ void BackendImpl::PackageImpl::exportTo(
}
else
{
// overwrite manifest.xml:
::
ucbhelper
::
Content
manifestContent
;
if
(
!
create_ucb_content
(
&
manifestContent
,
makeURL
(
m_url_expanded
,
"META-INF/manifest.xml"
),
xCmdEnv
,
false
)
)
bool
bSuccess
=
false
;
try
{
// overwrite manifest.xml:
::
ucbhelper
::
Content
manifestContent
;
if
(
!
create_ucb_content
(
&
manifestContent
,
makeURL
(
m_url_expanded
,
"META-INF/manifest.xml"
),
xCmdEnv
,
false
)
)
{
OSL_FAIL
(
"### missing META-INF/manifest.xml file!"
);
return
;
}
if
(
metainfFolderContent
.
transferContent
(
manifestContent
,
::
ucbhelper
::
InsertOperation_COPY
,
OUString
(),
ucb
::
NameClash
::
OVERWRITE
))
{
bSuccess
=
true
;
}
}
catch
(
const
css
::
ucb
::
ContentCreationException
&
e
)
{
OSL_FAIL
(
"### missing META-INF/manifest.xml file!"
);
return
;
SAL_WARN
(
"desktop.deployment"
,
"exception on overwriting manifest: "
<<
e
.
Message
)
;
}
if
(
!
metainfFolderContent
.
transferContent
(
manifestContent
,
::
ucbhelper
::
InsertOperation_COPY
,
OUString
(),
ucb
::
NameClash
::
OVERWRITE
))
if
(
!
bSuccess
)
throw
RuntimeException
(
"UCB transferContent() failed!"
,
static_cast
<
OWeakObject
*>
(
this
)
);
}
...
...
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