clang-tidy: pass by value
Found with modernize-pass-by-value Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
b16cd52b88
commit
9210fb85f9
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user