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

@ -28,7 +28,7 @@ class nocopy {
private:
nocopy (const nocopy &) { ; }
nocopy& operator =(const nocopy &) { unreachable (); }
nocopy& operator =(const nocopy &) { unreachable (); return *this; }
};
#endif