summaryrefslogtreecommitdiff
path: root/src/cam/options.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-13 00:28:33 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-13 13:23:36 +0200
commit0c0b1e4dbe2b436a60c26cbaa68556988bcbf005 (patch)
treeff2b8185b38a0555d1bffe60f57c858957fdd73e /src/cam/options.cpp
parent5fb0ea016ce7d1347698b67e7e8f90b507495b65 (diff)
cam: options: Fix coding style issue related to templates
Our coding style doesn't add a space after the template keyword. Fix the source code accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/cam/options.cpp')
-rw-r--r--src/cam/options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cam/options.cpp b/src/cam/options.cpp
index eb59376f..655aa36b 100644
--- a/src/cam/options.cpp
+++ b/src/cam/options.cpp
@@ -39,25 +39,25 @@ const char *Option::typeName() const
* OptionBase<T>
*/
-template <typename T>
+template<typename T>
bool OptionsBase<T>::valid() const
{
return !values_.empty();
}
-template <typename T>
+template<typename T>
bool OptionsBase<T>::isSet(const T &opt) const
{
return values_.find(opt) != values_.end();
}
-template <typename T>
+template<typename T>
const OptionValue &OptionsBase<T>::operator[](const T &opt) const
{
return values_.find(opt)->second;
}
-template <typename T>
+template<typename T>
bool OptionsBase<T>::parseValue(const T &opt, const Option &option,
const char *optarg)
{
@@ -100,7 +100,7 @@ bool OptionsBase<T>::parseValue(const T &opt, const Option &option,
return true;
}
-template <typename T>
+template<typename T>
void OptionsBase<T>::clear()
{
values_.clear();