diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 12:47:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 15:29:19 +0200 |
commit | 6725311151403e5bf5bef44e08c35ac76527aba4 (patch) | |
tree | 62dda4a35d0cc2b8f96be6063e9c66c28957a0f4 /svtools | |
parent | 0de15abda691b78bef38862f078e60d97da549a5 (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 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index c80fd00d77ed..6f9e33a8bd2e 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1029,8 +1029,7 @@ HtmlTokenId HTMLParser::GetNextToken_() } // Delete options - if (!maOptions.empty()) - maOptions.clear(); + maOptions.clear(); if( !IsParserWorking() ) // Don't continue if already an error occurred return HtmlTokenId::NONE; |