mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 00:25:07 +03:00
libcamera: controls: Add comparison operators for ControlValue
Add equality and non equality comparison operators for the ControlValue class. This simplifies code that deals with control values. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
33ee44dc16
commit
273b87c781
2 changed files with 33 additions and 0 deletions
|
@ -40,6 +40,12 @@ public:
|
|||
|
||||
std::string toString() const;
|
||||
|
||||
bool operator==(const ControlValue &other) const;
|
||||
bool operator!=(const ControlValue &other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
private:
|
||||
ControlType type_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue