From 784cbe2965976189cf7bf92e2be16057149be4f1 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 9 Mar 2022 17:05:41 -0800 Subject: [PATCH] manual move conversions Signed-off-by: Rosen Penev --- src/exif.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/exif.cpp b/src/exif.cpp index 637b73eb..b470f959 100644 --- a/src/exif.cpp +++ b/src/exif.cpp @@ -38,9 +38,7 @@ namespace { class FindExifdatumByKey { public: //! Constructor, initializes the object with the key to look for - explicit FindExifdatumByKey(const std::string& key) : key_(key) - { - } + explicit FindExifdatumByKey(std::string key) : key_(std::move(key)) {} /*! @brief Returns true if the key of \em exifdatum is equal to that of the object. @@ -51,8 +49,7 @@ namespace { } private: - const std::string& key_; - + std::string key_; }; // class FindExifdatumByKey /*!