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
28619201
Kaydet (Commit)
28619201
authored
Ock 16, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
do not close input, unless it was us who opened it
Change-Id: I6ffedd1e64e48b4fc4bd6f5eb63e96b49f1a8508
üst
7d432a9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
zipfileaccess.hxx
package/inc/zipfileaccess.hxx
+1
-0
zipfileaccess.cxx
package/source/zippackage/zipfileaccess.cxx
+3
-1
No files found.
package/inc/zipfileaccess.hxx
Dosyayı görüntüle @
28619201
...
...
@@ -51,6 +51,7 @@ class OZipFileAccess : public ::cppu::WeakImplHelper4<
::
cppu
::
OInterfaceContainerHelper
*
m_pListenersContainer
;
sal_Bool
m_bDisposed
;
bool
m_bOwnContent
;
public
:
OZipFileAccess
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
);
...
...
package/source/zippackage/zipfileaccess.cxx
Dosyayı görüntüle @
28619201
...
...
@@ -43,6 +43,7 @@ OZipFileAccess::OZipFileAccess( const uno::Reference< uno::XComponentContext >&
,
m_pZipFile
(
NULL
)
,
m_pListenersContainer
(
NULL
)
,
m_bDisposed
(
sal_False
)
,
m_bOwnContent
(
false
)
{
if
(
!
rxContext
.
is
()
)
throw
uno
::
RuntimeException
(
OSL_LOG_PREFIX
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
...
...
@@ -188,6 +189,7 @@ void SAL_CALL OZipFileAccess::initialize( const uno::Sequence< uno::Any >& aArgu
if
(
aContent
.
openStream
(
xSink
)
)
{
m_xContentStream
=
xSink
->
getInputStream
();
m_bOwnContent
=
true
;
xSeekable
=
uno
::
Reference
<
io
::
XSeekable
>
(
m_xContentStream
,
uno
::
UNO_QUERY
);
}
}
...
...
@@ -385,7 +387,7 @@ void SAL_CALL OZipFileAccess::dispose()
m_pZipFile
=
NULL
;
}
if
(
m_xContentStream
.
is
()
)
if
(
m_xContentStream
.
is
()
&&
m_bOwnContent
)
try
{
m_xContentStream
->
closeInput
();
}
catch
(
uno
::
Exception
&
)
...
...
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