coverity#707899 Uninitialized scalar field
Change-Id: I49c6e56412e10155ddb2b8f4b492a3420e1b6718
This commit is contained in:
@@ -66,8 +66,7 @@ HWPInfo::HWPInfo()
|
|||||||
|
|
||||||
HWPInfo::~HWPInfo(void)
|
HWPInfo::~HWPInfo(void)
|
||||||
{
|
{
|
||||||
if (info_block)
|
delete[] info_block;
|
||||||
delete[]info_block;
|
|
||||||
info_block = 0;
|
info_block = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ class CHTMLOut;
|
|||||||
/**
|
/**
|
||||||
* Information of page (phisical)
|
* Information of page (phisical)
|
||||||
*/
|
*/
|
||||||
typedef struct
|
struct PaperInfo
|
||||||
{
|
{
|
||||||
unsigned char paper_kind;
|
unsigned char paper_kind;
|
||||||
unsigned char paper_direction;
|
unsigned char paper_direction;
|
||||||
@@ -46,7 +46,21 @@ typedef struct
|
|||||||
hunit header_length;
|
hunit header_length;
|
||||||
hunit footer_length;
|
hunit footer_length;
|
||||||
hunit gutter_length;
|
hunit gutter_length;
|
||||||
} PaperInfo;
|
PaperInfo()
|
||||||
|
: paper_kind(0)
|
||||||
|
, paper_direction(0)
|
||||||
|
, paper_height(0)
|
||||||
|
, paper_width(0)
|
||||||
|
, top_margin(0)
|
||||||
|
, bottom_margin(0)
|
||||||
|
, left_margin(0)
|
||||||
|
, right_margin(0)
|
||||||
|
, header_length(0)
|
||||||
|
, footer_length(0)
|
||||||
|
, gutter_length(0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/* ?????? ??????, ???????? ???? */
|
/* ?????? ??????, ???????? ???? */
|
||||||
struct PaperBackInfo
|
struct PaperBackInfo
|
||||||
@@ -146,7 +160,7 @@ class DLLEXPORT HWPInfo
|
|||||||
*/
|
*/
|
||||||
PaperInfo paper;
|
PaperInfo paper;
|
||||||
|
|
||||||
PaperBackInfo back_info;
|
PaperBackInfo back_info;
|
||||||
/**
|
/**
|
||||||
* Sets the attribute of read-only or read/write.
|
* Sets the attribute of read-only or read/write.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user