mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355974
|
@ -70,9 +70,6 @@ class Guid
|
|||
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…
Reference in a new issue