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 /editeng | |
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 'editeng')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 1c4f7f246d09..53fa36f92698 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -97,10 +97,8 @@ SvParserState SvxRTFParser::CallParser() if( !aColorTbl.empty() ) ClearColorTbl(); - if (!m_FontTable.empty()) - m_FontTable.clear(); - if (!m_StyleTable.empty()) - m_StyleTable.clear(); + m_FontTable.clear(); + m_StyleTable.clear(); if( !aAttrStack.empty() ) ClearAttrStack(); |