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
48524222
Kaydet (Commit)
48524222
authored
Nis 05, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
split closeOutput up
Change-Id: Id6408fa804e1049ceab012ec0220d8e6f8d8e555
üst
65753b97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
seqstream.cxx
comphelper/source/streaming/seqstream.cxx
+10
-4
seqstream.hxx
include/comphelper/seqstream.hxx
+3
-1
No files found.
comphelper/source/streaming/seqstream.cxx
Dosyayı görüntüle @
48524222
...
...
@@ -199,12 +199,9 @@ void SAL_CALL OSequenceOutputStream::flush( )
m_rSequence
.
realloc
(
m_nSize
);
}
void
SAL_CALL
OSequenceOutputStream
::
closeOutput
(
)
void
OSequenceOutputStream
::
finalizeOutput
()
{
MutexGuard
aGuard
(
m_aMutex
);
if
(
!
m_bConnected
)
throw
NotConnectedException
();
// cut the sequence to the real size
m_rSequence
.
realloc
(
m_nSize
);
...
...
@@ -212,6 +209,15 @@ void SAL_CALL OSequenceOutputStream::closeOutput( )
m_bConnected
=
false
;
}
void
SAL_CALL
OSequenceOutputStream
::
closeOutput
()
{
MutexGuard
aGuard
(
m_aMutex
);
if
(
!
m_bConnected
)
throw
NotConnectedException
();
finalizeOutput
();
}
}
// namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/comphelper/seqstream.hxx
Dosyayı görüntüle @
48524222
...
...
@@ -71,6 +71,8 @@ class SAL_DLLPUBLIC_TEMPLATE OSequenceOutputStream_Base
class
COMPHELPER_DLLPUBLIC
OSequenceOutputStream
:
public
OSequenceOutputStream_Base
{
private
:
void
finalizeOutput
();
protected
:
css
::
uno
::
Sequence
<
sal_Int8
>&
m_rSequence
;
double
m_nResizeFactor
;
...
...
@@ -85,7 +87,7 @@ protected:
::
osl
::
Mutex
m_aMutex
;
protected
:
virtual
~
OSequenceOutputStream
()
override
{
if
(
m_bConnected
)
clos
eOutput
();
}
virtual
~
OSequenceOutputStream
()
override
{
if
(
m_bConnected
)
finaliz
eOutput
();
}
public
:
/** constructs the object. Everything written into the stream through the XOutputStream methods will be forwarded
...
...
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