From 74ff7361c38c4f8620b68c72fd2263c1f2d6a5a2 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sun, 4 Dec 2022 20:45:57 +0200 Subject: Fix clang-tidy warnings Signed-off-by: Tomi Valkeinen --- v4l2++/inc/v4l2++/pixelformats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'v4l2++') diff --git a/v4l2++/inc/v4l2++/pixelformats.h b/v4l2++/inc/v4l2++/pixelformats.h index c7eda25..777d0ec 100644 --- a/v4l2++/inc/v4l2++/pixelformats.h +++ b/v4l2++/inc/v4l2++/pixelformats.h @@ -73,14 +73,14 @@ enum class PixelFormat : uint32_t { META_16 = MakeFourCC("ME16"), }; -static inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) +inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) { return (PixelFormat)MakeFourCC(fourcc.c_str()); } PixelFormat DRMFourCCToPixelFormat(const std::string& fourcc); -static inline std::string PixelFormatToFourCC(PixelFormat f) +inline std::string PixelFormatToFourCC(PixelFormat f) { char buf[5] = { (char)(((uint32_t)f >> 0) & 0xff), (char)(((uint32_t)f >> 8) & 0xff), -- cgit v1.2.3