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
87847bb8
Kaydet (Commit)
87847bb8
authored
Şub 27, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz: fix leak
Change-Id: I631ea0012f8e999f14aa08b42f28d6115a73d084
üst
7f335799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lwpfilter.cxx
lotuswordpro/source/filter/lwpfilter.cxx
+9
-5
No files found.
lotuswordpro/source/filter/lwpfilter.cxx
Dosyayı görüntüle @
87847bb8
...
@@ -101,7 +101,7 @@ using namespace ::com::sun::star;
...
@@ -101,7 +101,7 @@ using namespace ::com::sun::star;
#include "bento.hxx"
#include "bento.hxx"
using
namespace
OpenStormBento
;
using
namespace
OpenStormBento
;
#include "explode.hxx"
#include "explode.hxx"
bool
Decompress
(
SvStream
*
pCompressed
,
SvStream
*
&
pOutDecompressed
)
bool
Decompress
(
SvStream
*
pCompressed
,
SvStream
*
&
pOutDecompressed
)
{
{
pCompressed
->
Seek
(
0
);
pCompressed
->
Seek
(
0
);
std
::
unique_ptr
<
SvStream
>
aDecompressed
(
new
SvMemoryStream
(
4096
,
4096
));
std
::
unique_ptr
<
SvStream
>
aDecompressed
(
new
SvMemoryStream
(
4096
,
4096
));
...
@@ -110,10 +110,14 @@ using namespace OpenStormBento;
...
@@ -110,10 +110,14 @@ using namespace OpenStormBento;
aDecompressed
->
WriteBytes
(
buffer
,
16
);
aDecompressed
->
WriteBytes
(
buffer
,
16
);
std
::
unique_ptr
<
LwpSvStream
>
aLwpStream
(
new
LwpSvStream
(
pCompressed
));
std
::
unique_ptr
<
LwpSvStream
>
aLwpStream
(
new
LwpSvStream
(
pCompressed
));
LtcBenContainer
*
pBentoContainer
;
std
::
unique_ptr
<
OpenStormBento
::
LtcBenContainer
>
pBentoContainer
;
sal_uLong
ulRet
=
BenOpenContainer
(
aLwpStream
.
get
(),
&
pBentoContainer
);
{
if
(
ulRet
!=
BenErr_OK
)
OpenStormBento
::
LtcBenContainer
*
pTmp
(
nullptr
);
return
false
;
sal_uLong
ulRet
=
BenOpenContainer
(
aLwpStream
.
get
(),
&
pTmp
);
pBentoContainer
.
reset
(
pTmp
);
if
(
ulRet
!=
BenErr_OK
)
return
false
;
}
std
::
unique_ptr
<
LtcUtBenValueStream
>
aWordProData
(
pBentoContainer
->
FindValueStreamWithPropertyName
(
"WordProData"
));
std
::
unique_ptr
<
LtcUtBenValueStream
>
aWordProData
(
pBentoContainer
->
FindValueStreamWithPropertyName
(
"WordProData"
));
...
...
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