loplugin:singlevalfields in various

Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e
Reviewed-on: https://gerrit.libreoffice.org/26738
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2016-06-27 15:08:50 +02:00
committed by Noel Grandin
parent f7d6f3e4e3
commit 48a8d6d843
54 changed files with 142 additions and 265 deletions

View File

@@ -46,6 +46,13 @@ for fieldInfo, assignValues in fieldAssignDict.iteritems():
# if it contains anything other than this set, ignore it
if len(assignValues - set(["0", "1", "-1", "nullptr"])) > 0:
continue
# ignore things which are locally declared but are actually redeclarations of things from 3rd party code
parentClass = fieldInfo[0]
if parentClass == "_mwmhints":
continue
# ignore things which are representations of on-disk structures
if parentClass in ["SEPr", "WW8Dop", ]:
continue
v0 = fieldInfo[0] + " " + fieldInfo[1]
v1 = (",".join(assignValues))
v2 = ""