From 664d12e5e01e9c5a74ab9465a1260167af335a92 Mon Sep 17 00:00:00 2001 From: Christoph Bachhuber Date: Tue, 3 Dec 2019 20:31:38 +0100 Subject: [PATCH 1/5] Clang-tidy fixes --- include/CLI/Option.hpp | 34 +++++++++++++++++----------------- include/CLI/Validators.hpp | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 52d5c167c..abf68523b 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -87,7 +87,7 @@ template class OptionBase { // setters /// Changes the group membership - CRTP *group(std::string name) { + CRTP *group(const std::string& name) { group_ = name; return static_cast(this); } @@ -346,7 +346,7 @@ class Option : public OptionBase