More ctor check fixes

Change-Id: Ifcce63b975fb7c4ac7e7545e3eadcc6f7f12e466
This commit is contained in:
Stephan Bergmann
2017-02-01 15:38:17 +01:00
parent a4d5d69eb4
commit 1028e5192c

View File

@@ -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) {