summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/stringconstant.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-01 15:31:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-01 15:31:37 +0100
commit836b74aead22c7013cd18f52224f19f5af179810 (patch)
treeb4a1838448f20efeb6cc5d91533eec1fe9d7825a /compilerplugins/clang/stringconstant.cxx
parenta0b4f816ce9b02b0b7cfb7fa74f74ecd9d8ae375 (diff)
Fix ctor check
Change-Id: Ie261d5412c510c045b4d93a6bf1a3d4cf4371897
Diffstat (limited to 'compilerplugins/clang/stringconstant.cxx')
-rw-r--r--compilerplugins/clang/stringconstant.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index 426f8bd2c244..b80701c41b8b 100644
--- a/compilerplugins/clang/stringconstant.cxx
+++ b/compilerplugins/clang/stringconstant.cxx
@@ -1626,7 +1626,8 @@ void StringConstant::handleOUStringCtor(
if (e3 == nullptr) {
return;
}
- if (!loplugin::DeclCheck(e3->getConstructor()).Function("OUString").Class("OUString").Namespace("rtl").GlobalNamespace())
+ if (!loplugin::DeclCheck(e3->getConstructor()).MemberFunction()
+ .Class("OUString").Namespace("rtl").GlobalNamespace())
{
return;
}