From 6725311151403e5bf5bef44e08c35ac76527aba4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 Oct 2018 12:47:53 +0200 Subject: 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 --- io/source/stm/omark.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'io') diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index 989c20894b0f..af6b7d390f3f 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -179,10 +179,7 @@ void OMarkableOutputStream::closeOutput() MutexGuard guard( m_mutex ); // all marks must be cleared and all - if( ! m_mapMarks.empty() ) - { - m_mapMarks.clear(); - } + m_mapMarks.clear(); m_nCurrentPos = m_pBuffer->getSize(); checkMarksAndFlush(); -- cgit