pass bool by value
No sense in passing by reference Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
c74ae5aa00
commit
e2ee1338f5
@ -62,7 +62,7 @@ class EXIV2API Xmpdatum : public Metadatum {
|
||||
@brief Assign a boolean \em value to the %Xmpdatum.
|
||||
Translates the value to a string "true" or "false".
|
||||
*/
|
||||
Xmpdatum& operator=(const bool& value);
|
||||
Xmpdatum& operator=(bool value);
|
||||
/*!
|
||||
@brief Assign a \em value of any type with an output operator
|
||||
to the %Xmpdatum. Calls operator=(const std::string&).
|
||||
@ -399,7 +399,7 @@ class EXIV2API XmpParser {
|
||||
// *****************************************************************************
|
||||
// free functions, template and inline definitions
|
||||
|
||||
inline Xmpdatum& Xmpdatum::operator=(const bool& value) {
|
||||
inline Xmpdatum& Xmpdatum::operator=(bool value) {
|
||||
return operator=(value ? "True" : "False");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user