Merge pull request #14946 from andrey-golubev:obj_not_ref

G-API: Use object instead of reference in extended lifetime case (#14946)

* Use object instead of reference

* Make the object const
This commit is contained in:
Andrey Golubev 2019-07-02 19:03:45 +03:00 committed by Alexander Alekhin
parent bff90d4684
commit 2bf8793632

View File

@ -75,7 +75,7 @@ void cv::gimpl::passes::inferMeta(ade::passes::PassContext &ctx, bool meta_is_in
// Now ask kernel for it's output meta.
// Resulting out_args may have a larger size than op.outs, since some
// outputs could stay unused (unconnected)
const auto& out_metas = op.k.outMeta(input_meta_args, op.args);
const auto out_metas = op.k.outMeta(input_meta_args, op.args);
// Walk through operation's outputs, update meta of output objects
// appropriately