svl/source/items/itempool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 21a6641da521e47d12be91afc55eae5836a24e5c Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Dec 31 12:26:36 2023 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Dec 31 16:29:10 2023 +0100 Replace "size() != 0 with !empty()" (svl) Change-Id: I173c42583c03c41d8cd98424ba672cce10081e4e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161487 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 2b60edf14091..e697a5e9a1f2 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -579,7 +579,7 @@ void SfxItemPool::SetSecondaryPool( SfxItemPool *pPool ) for (sal_uInt16 a(0); a < pImpl->mpSecondary->GetSize_Impl(); a++, ppSet++) { - if (nullptr != *ppSet && (*ppSet)->size() != 0) + if (nullptr != *ppSet && !(*ppSet)->empty()) { SAL_WARN("svl.items", "old secondary pool: " << pImpl->mpSecondary->pImpl->aName << " of pool: " << pImpl->aName << " must be empty.");