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
fa19b250bd
commit
47ce20aef1
@ -70,9 +70,6 @@ class Guid
|
|||||||
Guid(const std::string &guid);
|
Guid(const std::string &guid);
|
||||||
static Guid InvalidGuid();
|
static Guid InvalidGuid();
|
||||||
|
|
||||||
/* Assignment */
|
|
||||||
Guid& operator=(const Guid& rhs);
|
|
||||||
|
|
||||||
/* Test the validity of this guid. */
|
/* Test the validity of this guid. */
|
||||||
bool IsValid() const;
|
bool IsValid() const;
|
||||||
|
|
||||||
@ -110,13 +107,6 @@ Guid::InvalidGuid()
|
|||||||
return (Guid(INVALID_GUID));
|
return (Guid(INVALID_GUID));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Guid&
|
|
||||||
Guid::operator=(const Guid &rhs)
|
|
||||||
{
|
|
||||||
m_GUID = rhs.m_GUID;
|
|
||||||
return (*this);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
Guid::IsValid() const
|
Guid::IsValid() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user