svx/source/tbxctrls/SvxColorValueSet.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 327e9592319ddd192de01d1850e404a0918ad130
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sun Dec 31 12:27:24 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Dec 31 16:27:00 2023 +0100

    Replace "size() != 0 with !empty()" (svx)
    
    Change-Id: I42c3d2a41bebc4e403180d8b3f8eb73d0d3a2377
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161488
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx 
b/svx/source/tbxctrls/SvxColorValueSet.cxx
index 4a181730ed97..e72ab98598d6 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -72,7 +72,7 @@ void SvxColorValueSet::addEntriesForXColorList(const 
XColorList& rXColorList, sa
 void SvxColorValueSet::addEntriesForColorSet(const std::set<Color>& rColorSet, 
std::u16string_view rNamePrefix)
 {
     sal_uInt32 nStartIndex = 1;
-    if(rNamePrefix.size() != 0)
+    if(!rNamePrefix.empty())
     {
         for(const auto& rColor : rColorSet)
         {

Reply via email to