clang-tidy: pass by value

Found with modernize-pass-by-value

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-06-10 02:52:20 -07:00 committed by Christoph Hasse
parent b16cd52b88
commit 9210fb85f9

View File

@ -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