diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-27 10:44:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-27 10:46:59 +0000 |
commit | 4add6c3f2a4a43de65b457223b61659c97e03149 (patch) | |
tree | 4606c50b001a68cc132612d41a299a09c0d0e9d1 /sax | |
parent | 81b5d8427e29849915d544e5c17c3ea3c3e26043 (diff) |
add assert that first element is 0
Change-Id: I75602b6941f291703c85c841837b432da455a7ef
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index 8552ad47229e..15b555efe2ba 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -72,7 +72,8 @@ void FastAttributeList::clear() { maAttributeTokens.clear(); maAttributeValues.resize(1); - if (maUnknownAttributes.size() > 0) + assert(maAttributeValues[0] == 0); + if (!maUnknownAttributes.empty()) maUnknownAttributes.clear(); } |