diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-07-22 15:13:14 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-07-22 22:06:26 -0400 |
commit | 7e88c5ee4601fca83dede7dd170b8670e27c05b0 (patch) | |
tree | b9c84926cad596a47dbf7a70ebc49abb5c6515db /svtools | |
parent | 5e361923f054683a5457b016a685ee07847a3672 (diff) |
Initialize members in the initializer of the ctor.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 8813ce18050e..f49b9e31b765 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -307,15 +307,22 @@ HTMLTableRules HTMLOption::GetTableRules() const return (HTMLTableRules)GetEnum( aTableRulesOptEnums, HTML_TR_NONE ); } -HTMLParser::HTMLParser( SvStream& rIn, bool bReadNewDoc ) - : SvParser( rIn ) +HTMLParser::HTMLParser( SvStream& rIn, bool bReadNewDoc ) : + SvParser( rIn ), + bNewDoc(bReadNewDoc), + bIsInHeader(true), + bIsInBody(false), + bReadListing(false), + bReadXMP(false), + bReadPRE(false), + bReadTextArea(false), + bReadScript(false), + bReadStyle(false), + bEndTokenFound(false), + bPre_IgnoreNewPara(false), + bReadNextChar(false), + bReadComment(false) { - bNewDoc = bReadNewDoc; - bReadListing = bReadXMP = bReadPRE = bReadTextArea = - bReadScript = bReadStyle = - bEndTokenFound = bIsInBody = bReadNextChar = - bReadComment = false; - bIsInHeader = true; pOptions = new HTMLOptions; //#i76649, default to UTF-8 for HTML unless we know differently |