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:
Niklas Söderlund
2020-03-04 23:51:30 +01:00
parent 257df552a4
commit 353851b773
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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();