Browse Source

[2332] unrelated cleanup: noncopyable doesn't have to be public inheritance

(maybe a matter of taste, though)
JINMEI Tatuya 12 years ago
parent
commit
1adba86b37
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/util/threads/lock.h

+ 2 - 2
src/lib/util/threads/lock.h

@@ -41,7 +41,7 @@ namespace thread {
 ///
 /// The current interface is somewhat minimalistic. If we ever need more, we
 /// can add it later.
-class Mutex : public boost::noncopyable {
+class Mutex : boost::noncopyable {
 public:
     /// \brief Constructor.
     ///
@@ -74,7 +74,7 @@ public:
     /// collecting" mechanism (auto_ptr, for example), it ensures exception
     /// safety with regards to the mutex - it'll get released on the exit
     /// of function no matter by what means.
-    class Locker : public boost::noncopyable {
+    class Locker : boost::noncopyable {
     public:
         /// \brief Constructor.
         ///