diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-22 21:12:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-23 08:49:28 +0100 |
commit | 3d441992df13d62109dc8385999ccc5ebe4bf338 (patch) | |
tree | beacc62f851cbc435d5118d108ed70743888dd7e /sax/source/fastparser/fastparser.cxx | |
parent | 189bfa9c9946fde2f8bc791aad501f72ca45db5b (diff) |
Better make the zero-initialization more explicit
...if initializing mbIsAttributesEmpty is necessary at all; a bit hard to tell
from the code.
Change-Id: Ia19014b4bf6bb2c41d11ee0afb43fe6bf7da1fcb
Diffstat (limited to 'sax/source/fastparser/fastparser.cxx')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 1b0ad53cb34c..78378dcfd14d 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -544,8 +544,9 @@ EventList* Entity::getEventList() } if (!mpProducedEvents) { - mpProducedEvents = new EventList(); + mpProducedEvents = new EventList; mpProducedEvents->maEvents.resize(mnEventListSize); + mpProducedEvents->mbIsAttributesEmpty = false; mnProducedEventsSize = 0; } } |