Kaydet (Commit) 17ee20b1 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:passstuffbyref improved return in emfio,writerfilter

Change-Id: I237936d62d0f1b17574dd88b5c9de932dc03238e
Reviewed-on: https://gerrit.libreoffice.org/47214Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d4d0b1a2
......@@ -250,7 +250,8 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
|| (dc.MemberFunction().Class("Submission").Namespace("xforms")
.GlobalNamespace())
|| (dc.Function("TopLeft").Class("SwRect").GlobalNamespace())
|| (dc.Function("ConvDicList_CreateInstance").GlobalNamespace()))
|| (dc.Function("ConvDicList_CreateInstance").GlobalNamespace())
|| (dc.Function("Create").Class("OUnoAutoPilot").Namespace("dbp").GlobalNamespace()))
{
return;
}
......@@ -349,6 +350,9 @@ bool PassStuffByRef::isReturnExprDisqualified(const Expr* expr)
if (isa<CXXBindTemporaryExpr>(expr)) {
return true;
}