From 9210fb85f93d9e001ec8f5ce0be9c8d432d4eb2d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 10 Jun 2021 02:52:20 -0700 Subject: [PATCH] clang-tidy: pass by value Found with modernize-pass-by-value Signed-off-by: Rosen Penev --- src/tiffcomposite_int.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tiffcomposite_int.hpp b/src/tiffcomposite_int.hpp index aa4d860f..532c01b0 100644 --- a/src/tiffcomposite_int.hpp +++ b/src/tiffcomposite_int.hpp @@ -397,7 +397,9 @@ namespace Exiv2 { //! Search key for TIFF mapping structures. struct TiffMappingInfo::Key { //! Constructor - Key(const std::string& m, uint32_t e, IfdId g) : m_(m), e_(e), g_(g) {} + Key(std::string m, uint32_t e, IfdId g) : m_(std::move(m)), e_(e), g_(g) + { + } std::string m_; //!< Camera make uint32_t e_; //!< Extended tag IfdId g_; //!< %Group