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
067207f0
Kaydet (Commit)
067207f0
authored
Tem 21, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#707195 Uncaught exception
Change-Id: Idaeb36f01632cc91cc9fc3d5febd249e39e44ae2
üst
d29fd56e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
xolesimplestorage.cxx
sot/source/unoolestorage/xolesimplestorage.cxx
+10
-10
No files found.
sot/source/unoolestorage/xolesimplestorage.cxx
Dosyayı görüntüle @
067207f0
...
...
@@ -457,7 +457,7 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const OUString& aName )
BaseStorage
*
pStrg
=
m_pStorage
->
OpenStorage
(
aName
);
m_pStorage
->
ResetError
();
if
(
!
pStrg
)
throw
io
::
IOException
();
throw
lang
::
WrappedTargetException
();
// io::IOException(); // TODO
SvStream
*
pStream
=
::
utl
::
UcbStreamHelper
::
CreateStream
(
xTempFile
,
false
);
// do not close the original stream
if
(
!
pStream
)
...
...
@@ -489,15 +489,15 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const OUString& aName )
else
{
BaseStorageStream
*
pStream
=
m_pStorage
->
OpenStream
(
aName
,
STREAM_READ
|
STREAM_SHARE_DENYALL
|
STREAM_NOCREATE
);
if
(
!
pStream
||
pStream
->
GetError
()
||
m_pStorage
->
GetError
()
)
{
m_pStorage
->
ResetError
();
DELETEZ
(
pStream
);
throw
io
::
IOException
();
// TODO
}
try
{
if
(
!
pStream
||
pStream
->
GetError
()
||
m_pStorage
->
GetError
()
)
{
m_pStorage
->
ResetError
();
DELETEZ
(
pStream
);
throw
io
::
IOException
();
// TODO
}
uno
::
Sequence
<
sal_Int8
>
aData
(
nBytesCount
);
sal_Int32
nSize
=
nBytesCount
;
sal_Int32
nRead
=
0
;
...
...
@@ -518,12 +518,12 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const OUString& aName )
xOutputStream
->
closeOutput
();
xSeekable
->
seek
(
0
);
}
catch
(
uno
::
RuntimeException
&
)
catch
(
const
uno
::
RuntimeException
&
)
{
DELETEZ
(
pStream
);
throw
;
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
DELETEZ
(
pStream
);
throw
lang
::
WrappedTargetException
();
// TODO:
...
...
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