diff options
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticconstfield.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/staticconstfield.cxx b/compilerplugins/clang/staticconstfield.cxx index 79fda38531e9..cde2f80babc5 100644 --- a/compilerplugins/clang/staticconstfield.cxx +++ b/compilerplugins/clang/staticconstfield.cxx @@ -93,6 +93,8 @@ bool StaticConstField::TraverseConstructorInitializer(CXXCtorInitializer* init) // unusual case where a user constructor sets a field to one value, and a copy constructor sets it to a different value if (fn == SRCDIR "/sw/source/core/attr/hints.cxx") return true; + if (fn == SRCDIR "/oox/source/core/contexthandler2.cxx") + return true; report(DiagnosticsEngine::Warning, "field can be static const", init->getSourceLocation()) << init->getSourceRange(); |