From 761d672bd7da59a8d713c15b4b0529fe09841d57 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 1 Nov 2020 20:48:31 -0800 Subject: [PATCH] cppcheck: move initialization Signed-off-by: Rosen Penev --- include/cxxopts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 929d822..b1fff65 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1030,9 +1030,9 @@ namespace cxxopts OptionDetails(const OptionDetails& rhs) : m_desc(rhs.m_desc) + , m_value(rhs.m_value->clone()) , m_count(rhs.m_count) { - m_value = rhs.m_value->clone(); } OptionDetails(OptionDetails&& rhs) = default;