Bug 1554147: default initialize member in `EncodedDocumentWithContext`. r=hsivonen
authorMirko Brodesser <mbrodesser@mozilla.com>
Mon, 27 May 2019 07:24:37 +0000
changeset 475686 b9a2470096c313f2f210f04782b5dd97ae43d5a0
parent 475685 7cf8441c08b6f9491985ecdcffdf87d372987d33
child 475687 445271e41b4a242bff39e0ad5a515697c1357119
push id86408
push usermalexandru@mozilla.com
push dateMon, 27 May 2019 08:14:58 +0000
treeherderautoland@445271e41b4a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsivonen
bugs1554147
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1554147: default initialize member in `EncodedDocumentWithContext`. r=hsivonen Just for consistency. Differential Revision: https://phabricator.services.mozilla.com/D32469
dom/base/nsCopySupport.cpp
--- a/dom/base/nsCopySupport.cpp
+++ b/dom/base/nsCopySupport.cpp
@@ -179,17 +179,17 @@ static nsresult EncodeAsTextHTMLWithCont
   return rv;
 }
 
 struct EncodedDocumentWithContext {
   // When determening `mSerializationForTextUnicode`, `text/unicode` is passed
   // as mime type to the encoder. It uses this as a switch to decide whether to
   // encode the document as `text/html` or `text/plain`. It  is `true` iff
   // `text/html` was used.
-  bool mUnicodeEncodingIsTextHTML;
+  bool mUnicodeEncodingIsTextHTML = false;
 
   // The serialized document when encoding the document with `text/unicode`. See
   // comment of `mUnicodeEncodingIsTextHTML`.
   nsAutoString mSerializationForTextUnicode;
 
   // When `mUnicodeEncodingIsTextHTML` is true, this is the serialized document
   // using `text/html`. Its value may differ from `mSerializationForTextHTML`,
   // because different flags were passed to the encoder.