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
75f118da
Kaydet (Commit)
75f118da
authored
Mar 10, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz#798 oom
Change-Id: I6fa8dd999af7e00d6236a1ead5f8bb519f2d128d
üst
1353ebe5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
hbox.cxx
hwpfilter/source/hbox.cxx
+0
-3
hbox.h
hwpfilter/source/hbox.h
+2
-5
hwpread.cxx
hwpfilter/source/hwpread.cxx
+5
-5
No files found.
hwpfilter/source/hbox.cxx
Dosyayı görüntüle @
75f118da
...
...
@@ -77,9 +77,6 @@ hchar_string HBox::GetString()
// skip block
SkipData
::
SkipData
(
hchar
hch
)
:
HBox
(
hch
)
,
data_block_len
(
0
)
,
dummy
(
0
)
,
data_block
(
nullptr
)
{
}
...
...
hwpfilter/source/hbox.h
Dosyayı görüntüle @
75f118da
...
...
@@ -68,18 +68,15 @@ struct HBox
};
/**
* @short Class for s
aving data to be skipped
.
* @short Class for s
kipping data
.
*/
struct
SkipData
:
public
HBox
{
uint
data_block_len
;
hchar
dummy
;
std
::
unique_ptr
<
char
[]
>
data_block
;
explicit
SkipData
(
hchar
);
virtual
~
SkipData
()
override
;
virtual
bool
Read
(
HWPFile
&
hwpf
)
override
;
};
struct
DateCode
;
struct
FieldCode
:
public
HBox
{
...
...
hwpfilter/source/hwpread.cxx
Dosyayı görüntüle @
75f118da
...
...
@@ -45,19 +45,19 @@ bool HBox::Read(HWPFile & )
bool
SkipData
::
Read
(
HWPFile
&
hwpf
)
{
uint
data_block_len
;
hwpf
.
Read4b
(
&
data_block_len
,
1
);
hchar
dummy
;
hwpf
.
Read2b
(
&
dummy
,
1
);
if
(
!
(
IS_SP_SKIP_BLOCK
(
hh
)
&&
(
hh
==
dummy
))){
return
hwpf
.
SetState
(
HWP_InvalidFileFormat
);
}
data_block
.
reset
(
new
char
[
data_block_len
]);
}
return
hwpf
.
Read1b
(
data_block
.
get
(),
data_block_len
);
return
hwpf
.
SkipBlock
(
data_block_len
);
}
// Field code(5)
bool
FieldCode
::
Read
(
HWPFile
&
hwpf
)
{
...
...
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