bin is unused
Change-Id: I5168b18898cff023ab014a86e7afc82d7b69f363
This commit is contained in:
parent
06cdf92ccf
commit
db86b38c54
@ -95,7 +95,6 @@ FieldCode::FieldCode()
|
|||||||
, str1(nullptr)
|
, str1(nullptr)
|
||||||
, str2(nullptr)
|
, str2(nullptr)
|
||||||
, str3(nullptr)
|
, str3(nullptr)
|
||||||
, bin(nullptr)
|
|
||||||
, m_pDate(nullptr)
|
, m_pDate(nullptr)
|
||||||
{
|
{
|
||||||
reserved1 = new char[4];
|
reserved1 = new char[4];
|
||||||
@ -107,7 +106,6 @@ FieldCode::~FieldCode()
|
|||||||
delete[] str1;
|
delete[] str1;
|
||||||
delete[] str2;
|
delete[] str2;
|
||||||
delete[] str3;
|
delete[] str3;
|
||||||
delete[] bin;
|
|
||||||
delete[] reserved1;
|
delete[] reserved1;
|
||||||
delete[] reserved2;
|
delete[] reserved2;
|
||||||
delete m_pDate;
|
delete m_pDate;
|
||||||
|
@ -90,9 +90,8 @@ struct FieldCode : public HBox
|
|||||||
hchar *str1;
|
hchar *str1;
|
||||||
hchar *str2;
|
hchar *str2;
|
||||||
hchar *str3;
|
hchar *str3;
|
||||||
char *bin;
|
|
||||||
|
|
||||||
DateCode *m_pDate;
|
DateCode *m_pDate;
|
||||||
|
|
||||||
FieldCode();
|
FieldCode();
|
||||||
virtual ~FieldCode() override;
|
virtual ~FieldCode() override;
|
||||||
|
@ -86,7 +86,6 @@ bool FieldCode::Read(HWPFile & hwpf)
|
|||||||
str1 = new hchar[len1_ ? len1_ : 1];
|
str1 = new hchar[len1_ ? len1_ : 1];
|
||||||
str2 = new hchar[len2_ ? len2_ : 1];
|
str2 = new hchar[len2_ ? len2_ : 1];
|
||||||
str3 = new hchar[len3_ ? len3_ : 1];
|
str3 = new hchar[len3_ ? len3_ : 1];
|
||||||
bin = new char[binlen];
|
|
||||||
|
|
||||||
hwpf.Read2b(str1, len1_);
|
hwpf.Read2b(str1, len1_);
|
||||||
hwpf.SkipBlock(len1 - (len1_ * sizeof(hchar)));
|
hwpf.SkipBlock(len1 - (len1_ * sizeof(hchar)));
|
||||||
@ -98,7 +97,7 @@ bool FieldCode::Read(HWPFile & hwpf)
|
|||||||
hwpf.SkipBlock(len3 - (len3_ * sizeof(hchar)));
|
hwpf.SkipBlock(len3 - (len3_ * sizeof(hchar)));
|
||||||
str3[len3_ ? (len3_ - 1) : 0] = 0;
|
str3[len3_ ? (len3_ - 1) : 0] = 0;
|
||||||
|
|
||||||
hwpf.ReadBlock(bin, binlen);
|
hwpf.SkipBlock(binlen);
|
||||||
|
|
||||||
if( type[0] == 3 && type[1] == 2 ){ /* It must create a format as created date. */
|
if( type[0] == 3 && type[1] == 2 ){ /* It must create a format as created date. */
|
||||||
DateCode *pDate = new DateCode;
|
DateCode *pDate = new DateCode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user