From 5fac945201bc381e0642218c380a6a72cfc6328c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Sep 2023 11:38:10 +0200 Subject: SvxDrawPage does not need to use aggregation we use custom subclasses when we want to modify behaviour Change-Id: I1aef9e87c76ea97f1868134f5e1ac0e317b5c698 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156559 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/implinheritancehelper.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/implinheritancehelper.cxx b/compilerplugins/clang/implinheritancehelper.cxx index fb24ed96f2dd..1eb1db60a90b 100644 --- a/compilerplugins/clang/implinheritancehelper.cxx +++ b/compilerplugins/clang/implinheritancehelper.cxx @@ -74,6 +74,10 @@ bool ImplInheritanceHelper::VisitCXXRecordDecl(const CXXRecordDecl* cxxRecordDec .Namespace("pcr") .GlobalNamespace()) return true; + if (loplugin::DeclCheck(cxxRecordDecl).Class("SdDrawPage").GlobalNamespace()) + return true; + if (loplugin::DeclCheck(cxxRecordDecl).Class("SdMasterPage").GlobalNamespace()) + return true; // check if this class extends cppu::WeakImplHelper if (!loplugin::isDerivedFrom(cxxRecordDecl, [](Decl const* decl) -> bool { -- cgit