[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Wed Feb 1 14:32:08 UTC 2017


 compilerplugins/clang/stringconstant.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 836b74aead22c7013cd18f52224f19f5af179810
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Feb 1 15:31:04 2017 +0100

    Fix ctor check
    
    Change-Id: Ie261d5412c510c045b4d93a6bf1a3d4cf4371897

diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index 426f8bd..b80701c 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;
     }


More information about the Libreoffice-commits mailing list