compilerplugins/clang/sfxpoolitem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 17cf2c278d9545dd6c9a9f132e52eae0ae482279 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Feb 3 15:28:14 2023 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Feb 3 15:38:03 2023 +0000 Fix misuse of TagDecl::hasDefinition ...that started to cause false > In file included from svl/source/items/itemiter.cxx:20: > include/svl/itemiter.hxx:25:1: error: SfxPoolItem subclass SfxPoolItem declares new fields, but does not override operator== [loplugin:sfxpoolitem] > class SfxPoolItem; > ^~~~~~~~~~~~~~~~~ etc. now as a side effect of <https://github.com/llvm/llvm-project/commit/b6121432da79c4b3d21f191864ff6c583e2e62eb> "[C++20] Fix a crash with modules." Change-Id: Ibbf7a7c840ecea2605d6ea76afd04a2c2720e54d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146544 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/compilerplugins/clang/sfxpoolitem.cxx b/compilerplugins/clang/sfxpoolitem.cxx index 801689f0f3de..79ef64dd243e 100644 --- a/compilerplugins/clang/sfxpoolitem.cxx +++ b/compilerplugins/clang/sfxpoolitem.cxx @@ -93,7 +93,7 @@ bool SfxPoolItem::VisitCXXRecordDecl(const CXXRecordDecl* decl) if (ignoreLocation(decl)) { return true; } - if (!decl->hasDefinition()) { + if (!decl->isThisDeclarationADefinition()) { return true; } // check if this class is derived from Window