loplugin:passstuffbyref
Change-Id: I785e96599bbda029adf4698d11d7f981750dec07 Reviewed-on: https://gerrit.libreoffice.org/54802 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -274,6 +274,10 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
|
||||
if (startswith(type.getAsString(), "struct o3tl::strong_int")) {
|
||||
return;
|
||||
}
|
||||
// extremely simple class, might as well pass by value
|
||||
if (loplugin::TypeCheck(functionDecl->getReturnType()).Class("Color")) {
|
||||
return;
|
||||
}
|
||||
|
||||
// functionDecl->dump();
|
||||
|
||||
|
Reference in New Issue
Block a user