Return a const reference to self in nocopy.
While not technically necessary, it reduces warnings in cppcheck.
This commit is contained in:
parent
d9dba1d155
commit
d592432113
@ -27,8 +27,8 @@ class nocopy {
|
||||
nocopy () { ; }
|
||||
|
||||
private:
|
||||
nocopy (const nocopy &) { ; }
|
||||
nocopy& operator =(const nocopy &) { unreachable (); }
|
||||
nocopy (const nocopy &) { ; }
|
||||
nocopy& operator =(const nocopy &) { unreachable (); return *this; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user