diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-07-14 20:05:10 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-07-15 12:11:05 +0200 |
commit | bdffe94e0a467774f0b87a4b74587390b4338100 (patch) | |
tree | 40db1bf8d5e85c52e3fd7256c95e3dc704a0de1b /bin | |
parent | 8906275d40a1828db684e7d9c9bc4934a937bc6c (diff) |
find-unneeded-includes: don't propose to replace hpp with hdl...
in the ooo/vba namespace either. Quite frequent in sc/source/ui/vba
Change-Id: I62c89bb430455f025b25f1246e55012b411db21e
Reviewed-on: https://gerrit.libreoffice.org/75597
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-unneeded-includes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index d3177af8336a..c70006add441 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -32,8 +32,8 @@ import yaml def ignoreRemoval(include, toAdd, absFileName, moduleRules): # global rules - # Avoid replacing .hpp with .hdl in the com::sun::star namespace. - if include.startswith("com/sun/star") and include.endswith(".hpp"): + # Avoid replacing .hpp with .hdl in the com::sun::star and ooo::vba namespaces. + if ( include.startswith("com/sun/star") or include.startswith("ooo/vba") ) and include.endswith(".hpp"): hdl = include.replace(".hpp", ".hdl") if hdl in toAdd: return True |