From b83ee94fe21d09f444454cc82e5586e7b196cf05 Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Wed, 30 Sep 2020 13:02:07 +0530 Subject: Documentation: guides: pipeline-handler: Update clamp() namespace Update the sample code using utils::clamp() to std::clamp(). Fixes: f2734ff3ab09 ("libcamera: Replace utils::clamp() with std::clamp()") Signed-off-by: Umang Jain Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi Signed-off-by: Kieran Bingham --- Documentation/guides/pipeline-handler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst index 746e2066..71ef2050 100644 --- a/Documentation/guides/pipeline-handler.rst +++ b/Documentation/guides/pipeline-handler.rst @@ -1289,7 +1289,7 @@ range definitions and their corresponding values on the device before being set. } int32_t value = lroundf(it.second.get() * 128 + offset); - controls.set(cid, utils::clamp(value, 0, 255)); + controls.set(cid, std::clamp(value, 0, 255)); } for (const auto &ctrl : controls) -- cgit v1.2.1