manual move conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
b8304fffa4
commit
784cbe2965
@ -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
|
||||
|
||||
/*!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user