mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 08:35:07 +03:00
v4l2: camera: Prevent shadowing within V4L2Camera::Buffer
Rename the internal member variables to use the post-fixed '_' member variable naming style. This in turn ensures variable shadowing does not occur in the member initializer list of the constructor. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
a3ed067996
commit
32d78a7bba
2 changed files with 5 additions and 5 deletions
|
@ -26,12 +26,12 @@ class V4L2Camera
|
|||
public:
|
||||
struct Buffer {
|
||||
Buffer(unsigned int index, const FrameMetadata &data)
|
||||
: index(index), data(data)
|
||||
: index_(index), data_(data)
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int index;
|
||||
FrameMetadata data;
|
||||
unsigned int index_;
|
||||
FrameMetadata data_;
|
||||
};
|
||||
|
||||
V4L2Camera(std::shared_ptr<Camera> camera);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue