Skip to content

Commit c74ae5a

Browse files
committed
clang-tidy: remove const char operator
It morphs into std::string anyway. Signed-off-by: Rosen Penev <[email protected]>
1 parent 5ca0acd commit c74ae5a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/exiv2/xmp_exiv2.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ class EXIV2API Xmpdatum : public Metadatum {
5858
Calls setValue(const std::string&).
5959
*/
6060
Xmpdatum& operator=(const std::string& value);
61-
/*!
62-
@brief Assign const char* \em value to the %Xmpdatum.
63-
Calls operator=(const std::string&).
64-
*/
65-
Xmpdatum& operator=(const char* value);
6661
/*!
6762
@brief Assign a boolean \em value to the %Xmpdatum.
6863
Translates the value to a string "true" or "false".
@@ -404,10 +399,6 @@ class EXIV2API XmpParser {
404399
// *****************************************************************************
405400
// free functions, template and inline definitions
406401

407-
inline Xmpdatum& Xmpdatum::operator=(const char* value) {
408-
return Xmpdatum::operator=(std::string(value));
409-
}
410-
411402
inline Xmpdatum& Xmpdatum::operator=(const bool& value) {
412403
return operator=(value ? "True" : "False");
413404
}

0 commit comments

Comments
 (0)