diff options
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/stringconcat.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compilerplugins/clang/stringconcat.cxx b/compilerplugins/clang/stringconcat.cxx index 670d8929016a..1efdea8875da 100644 --- a/compilerplugins/clang/stringconcat.cxx +++ b/compilerplugins/clang/stringconcat.cxx @@ -28,8 +28,11 @@ Expr const * stripCtor(Expr const * expr) { return expr; } auto qt = loplugin::DeclCheck(e3->getConstructor()); - if (!qt.Function("OString").Class("OString").Namespace("rtl").GlobalNamespace() && - !qt.Function("OUString").Class("OUString").Namespace("rtl").GlobalNamespace()) { + if (!((qt.MemberFunction().Class("OString").Namespace("rtl") + .GlobalNamespace()) + || (qt.MemberFunction().Class("OUString").Namespace("rtl") + .GlobalNamespace()))) + { return expr; } if (e3->getNumArgs() != 2) { |