From 2c1b7e8d6a7fa22cb91919238418816671c3a497 Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Fri, 19 Oct 2018 08:12:17 +0200
Subject: clang-tidy readability-container-size-empty

Change-Id: I1df70b7dff5ebb6048f7fc618789faa15ca5d422
Reviewed-on: https://gerrit.libreoffice.org/61967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
---
 package/source/xstor/xstorage.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'package/source/xstor')

diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index c3c9a0ae7022..f29ecfd3ea0a 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1842,7 +1842,7 @@ void OStorage::InternalDispose( bool bNotifyImpl )
 
     if ( m_pData->m_bReadOnlyWrap )
     {
-        OSL_ENSURE( !m_pData->m_aOpenSubComponentsVector.size() || m_pData->m_pSubElDispListener.get(),
+        OSL_ENSURE( m_pData->m_aOpenSubComponentsVector.empty() || m_pData->m_pSubElDispListener.get(),
                     "If any subelements are open the listener must exist!" );
 
         if (m_pData->m_pSubElDispListener)
@@ -3930,7 +3930,7 @@ sal_Bool SAL_CALL OStorage::hasElements()
 
     try
     {
-        return ( m_pImpl->GetChildrenVector().size() != 0 );
+        return ( !m_pImpl->GetChildrenVector().empty() );
     }
     catch( const uno::RuntimeException& rRuntimeException )
     {
-- 
cgit