summaryrefslogtreecommitdiff
path: root/src/cam/stream_options.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-10-05 16:31:10 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-15 05:05:38 +0300
commit3b93746907dfd1367b107af943f1df5a37a2eb29 (patch)
tree28aef89b7a82246a2adbc8248e5ae03c2615b9f9 /src/cam/stream_options.h
parentba7cf5d6544d84237402511bd48720caa3028ece (diff)
cam: Remove using namespace in stream_options.h
"using namespace" in a header file propagates the namespace to the files including the header file. So it should be avoided. This removes "using namespace" in stream_options.h Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/stream_options.h')
-rw-r--r--src/cam/stream_options.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cam/stream_options.h b/src/cam/stream_options.h
index 577391f0..fbbc13a3 100644
--- a/src/cam/stream_options.h
+++ b/src/cam/stream_options.h
@@ -11,8 +11,6 @@
#include "options.h"
-using namespace libcamera;
-
class StreamKeyValueParser : public KeyValueParser
{
public:
@@ -20,12 +18,12 @@ public:
KeyValueParser::Options parse(const char *arguments) override;
- static StreamRoles roles(const OptionValue &values);
- static int updateConfiguration(CameraConfiguration *config,
+ static libcamera::StreamRoles roles(const OptionValue &values);
+ static int updateConfiguration(libcamera::CameraConfiguration *config,
const OptionValue &values);
private:
- static bool parseRole(StreamRole *role,
+ static bool parseRole(libcamera::StreamRole *role,
const KeyValueParser::Options &options);
};