summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-07-22 15:13:14 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-07-22 22:06:26 -0400
commit41e14e97b88b21897ebdd6b8ba0803f4e0b0442b (patch)
treeca9eebe05b0235561c3d9fac00be28bf1456f103 /svtools
parent18d38a5c2849f81e6100d22a13a1b182af79aa93 (diff)
Initialize members in the initializer of the ctor.
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx23
1 files changed, 15 insertions, 8 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 1c3e64a041..ec3d45717f 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