From patchwork Tue Feb 12 22:29:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 560 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8BFC760B21 for ; Tue, 12 Feb 2019 23:29:19 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1B97785 for ; Tue, 12 Feb 2019 23:29:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1550010559; bh=6q4UTKnvDHwKCyEW5sNQ0tRcavxKxkxfJEiSV62CwWs=; h=From:To:Subject:Date:From; b=RvV7l9JrtDEpOAJ+By2F7QZEMQSLg8RXCdf+1wC5z4RhuO3a/mXYpHcqkca62FKU4 zUAryplDaM1m02Vdv94+x6l2Mff97QHjy9FcItlQ3Rb+sZF3moyqxFCIOfyCd3GowJ jA6SmslzeqynDm0LhrcuY926RAOfCG1/3jNVbQj4= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 13 Feb 2019 00:29:12 +0200 Message-Id: <20190212222912.9089-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] cam: options: Fix coding style issue related to templates X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 22:29:19 -0000 Our coding style doesn't add a space after the template keyword. Fix the source code accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/cam/options.cpp | 10 +++++----- src/cam/options.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cam/options.cpp b/src/cam/options.cpp index eb59376fa459..655aa36bb9c9 100644 --- a/src/cam/options.cpp +++ b/src/cam/options.cpp @@ -39,25 +39,25 @@ const char *Option::typeName() const * OptionBase */ -template +template bool OptionsBase::valid() const { return !values_.empty(); } -template +template bool OptionsBase::isSet(const T &opt) const { return values_.find(opt) != values_.end(); } -template +template const OptionValue &OptionsBase::operator[](const T &opt) const { return values_.find(opt)->second; } -template +template bool OptionsBase::parseValue(const T &opt, const Option &option, const char *optarg) { @@ -100,7 +100,7 @@ bool OptionsBase::parseValue(const T &opt, const Option &option, return true; } -template +template void OptionsBase::clear() { values_.clear(); diff --git a/src/cam/options.h b/src/cam/options.h index 2d3aa50b5051..745f4a4a3a43 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -41,7 +41,7 @@ struct Option { const char *typeName() const; }; -template +template class OptionsBase { public: