Return a const reference to self in nocopy.

While not technically necessary, it reduces warnings in cppcheck.
This commit is contained in:
Danny Robson 2011-06-29 21:19:08 +10:00
parent d9dba1d155
commit d592432113

View File

@ -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