| Message ID | 20260618123844.656396-4-barnabas.pocze@ideasonboard.com |
|---|---|
| State | Accepted |
| Headers | show |
| Series |
|
| Related | show |
You could squash with the previous one. Anyway Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> On Thu, Jun 18, 2026 at 02:38:20PM +0200, Barnabás Pőcze wrote: > Simplify by calling the equivalent method of the "Private" type. > > Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> > --- > src/libcamera/request.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp > index e31c9c006a..163d8cf920 100644 > --- a/src/libcamera/request.cpp > +++ b/src/libcamera/request.cpp > @@ -575,7 +575,7 @@ uint32_t Request::sequence() const > */ > bool Request::hasPendingBuffers() const > { > - return !_d()->pending_.empty(); > + return _d()->hasPendingBuffers(); > } > > /** > -- > 2.54.0 >
The subject line looks a bit weird, I'd write libcamera: request: Simplify hasPendingBuffers() On Thu, Jun 18, 2026 at 02:38:20PM +0200, Barnabás Pőcze wrote: > Simplify by calling the equivalent method of the "Private" type. > > Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > src/libcamera/request.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp > index e31c9c006a..163d8cf920 100644 > --- a/src/libcamera/request.cpp > +++ b/src/libcamera/request.cpp > @@ -575,7 +575,7 @@ uint32_t Request::sequence() const > */ > bool Request::hasPendingBuffers() const > { > - return !_d()->pending_.empty(); > + return _d()->hasPendingBuffers(); > } > > /**
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index e31c9c006a..163d8cf920 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -575,7 +575,7 @@ uint32_t Request::sequence() const */ bool Request::hasPendingBuffers() const { - return !_d()->pending_.empty(); + return _d()->hasPendingBuffers(); } /**
Simplify by calling the equivalent method of the "Private" type. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- src/libcamera/request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)