libcamera: Use utils::to_underlying()

Replace manual implementations of the utils::to_underlying() helper with
calls to the function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
Laurent Pinchart
2024-02-27 11:48:44 +02:00
parent 6a50c960be
commit dae4a44067
3 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ std::ostream &operator<<(std::ostream &out, StreamRole role)
"Viewfinder",
};
out << names[static_cast<std::underlying_type_t<StreamRole>>(role)];
out << names[utils::to_underlying(role)];
return out;
}