libcamera: V4L2BufferCache: Mark Entry::operator==() as const
The comparison operator does not change any state, mark it as const. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -122,7 +122,7 @@ private:
|
||||
Entry();
|
||||
Entry(bool free, const FrameBuffer &buffer);
|
||||
|
||||
bool operator==(const FrameBuffer &buffer);
|
||||
bool operator==(const FrameBuffer &buffer) const;
|
||||
|
||||
bool free;
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ V4L2BufferCache::Entry::Entry(bool free, const FrameBuffer &buffer)
|
||||
planes_.emplace_back(plane);
|
||||
}
|
||||
|
||||
bool V4L2BufferCache::Entry::operator==(const FrameBuffer &buffer)
|
||||
bool V4L2BufferCache::Entry::operator==(const FrameBuffer &buffer) const
|
||||
{
|
||||
const std::vector<FrameBuffer::Plane> &planes = buffer.planes();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user