From e66d4f382317c1339cc46071f558affd1582062b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 27 Apr 2020 14:58:31 +0200 Subject: cam: options: Make KeyValueParser::parse() virtual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prepare for sub-classing of the KeyValueParser by making the parse() method virtual. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- src/cam/options.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cam') diff --git a/src/cam/options.h b/src/cam/options.h index 5e346b47..ad5c93a4 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -71,10 +71,12 @@ public: { }; + virtual ~KeyValueParser() {} + bool addOption(const char *name, OptionType type, const char *help, OptionArgument argument = ArgumentNone); - Options parse(const char *arguments); + virtual Options parse(const char *arguments); void usage(int indent); private: -- cgit v1.2.1