libdevdctl: g++9 avoid Wdeprecated-copy
g++9 now warns about having defined an assignment operator but using the default copy constructor, or vice versa. Avoid the issue in libdevdctl by just using the default assignment operator too. Reviewed by: asomers, dim Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22887
This commit is contained in:
parent
21fe5f45cd
commit
cac2d671d4
@ -70,9 +70,6 @@ public:
|
||||
Guid(const std::string &guid);
|
||||
static Guid InvalidGuid();
|
||||
|
||||
/* Assignment */
|
||||
Guid& operator=(const Guid& rhs);
|
||||
|
||||
/* Test the validity of this guid. */
|
||||
bool IsValid() const;
|
||||
|
||||
@ -110,13 +107,6 @@ Guid::InvalidGuid()
|
||||
return (Guid(INVALID_GUID));
|
||||
}
|
||||
|
||||
inline Guid&
|
||||
Guid::operator=(const Guid &rhs)
|
||||
{
|
||||
m_GUID = rhs.m_GUID;
|
||||
return (*this);
|
||||
}
|
||||
|
||||
inline bool
|
||||
Guid::IsValid() const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user