[libcamera-devel,v5,02/13] py: Fix code formatting
diff mbox series

Message ID 20230603075615.20663-3-tomi.valkeinen@ideasonboard.com
State Accepted
Headers show
Series
  • py: New python bindings event handling
Related show

Commit Message

Tomi Valkeinen June 3, 2023, 7:56 a.m. UTC
Fix code formatting.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
 src/py/libcamera/py_main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart June 4, 2023, 9:25 a.m. UTC | #1
Hi Tomi,

Thank you for the patch.

On Sat, Jun 03, 2023 at 10:56:04AM +0300, Tomi Valkeinen wrote:
> Fix code formatting.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/py/libcamera/py_main.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp
> index fd140086..5a5f1a37 100644
> --- a/src/py/libcamera/py_main.cpp
> +++ b/src/py/libcamera/py_main.cpp
> @@ -180,7 +180,7 @@ PYBIND11_MODULE(_libcamera, m)
>  
>  			ControlList controlList(self.controls());
>  
> -			for (const auto& [id, obj]: controls) {
> +			for (const auto &[id, obj] : controls) {
>  				auto val = pyToControlValue(obj, id->type());
>  				controlList.set(id->id(), val);
>  			}

Patch
diff mbox series

diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp
index fd140086..5a5f1a37 100644
--- a/src/py/libcamera/py_main.cpp
+++ b/src/py/libcamera/py_main.cpp
@@ -180,7 +180,7 @@  PYBIND11_MODULE(_libcamera, m)
 
 			ControlList controlList(self.controls());
 
-			for (const auto& [id, obj]: controls) {
+			for (const auto &[id, obj] : controls) {
 				auto val = pyToControlValue(obj, id->type());
 				controlList.set(id->id(), val);
 			}