summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 12:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 15:29:19 +0200
commit6725311151403e5bf5bef44e08c35ac76527aba4 (patch)
tree62dda4a35d0cc2b8f96be6063e9c66c28957a0f4 /sax/source
parent0de15abda691b78bef38862f078e60d97da549a5 (diff)
no need to call empty() before clear()
found with git grep -A2 -nP '!.*\.empty()' | grep -B1 -w clear Change-Id: I87013eab9c6988048b891d20577e1f7efbce1b6c Reviewed-on: https://gerrit.libreoffice.org/61295 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/fastattribs.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 30a764368947..b8d1bacec630 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -74,8 +74,7 @@ void FastAttributeList::clear()
maAttributeTokens.clear();
maAttributeValues.resize(1);
assert(maAttributeValues[0] == 0);
- if (!maUnknownAttributes.empty())
- maUnknownAttributes.clear();
+ maUnknownAttributes.clear();
}
void FastAttributeList::add( sal_Int32 nToken, const sal_Char* pValue, size_t nValueLength )