From 2c1b7e8d6a7fa22cb91919238418816671c3a497 Mon Sep 17 00:00:00 2001 From: Noel Grandin 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 --- sot/source/base/formats.cxx | 2 +- sot/source/unoolestorage/xolesimplestorage.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sot') diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 98424bd9e5d2..2ee87e71458d 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -1405,7 +1405,7 @@ static sal_uInt16 GetTransferableAction_Impl( { try { - if( rDataFlavorExVector.size() ) + if( !rDataFlavorExVector.empty() ) { const SotAction_Impl* pArrayStart = pArray; SotClipboardFormatId nId = pArray->nFormatId; diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index d4414a2e58ec..8804c4318fad 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -550,7 +550,7 @@ sal_Bool SAL_CALL OLESimpleStorage::hasElements() throw uno::RuntimeException(); // TODO: } - return aList.size() != 0; + return !aList.empty(); } -- cgit