Add private copy constructor / assignment where necessary to prevent warnings.
This commit is contained in:
Родитель
76c4d8f21a
Коммит
0ee5f2fe1c
|
@ -53,6 +53,13 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
/// Copy-construct.
|
||||
KeyValue(const KeyValue& value) :
|
||||
first_(value.first_),
|
||||
second_(value.second_)
|
||||
{
|
||||
}
|
||||
|
||||
/// Test for equality with another pair.
|
||||
bool operator == (const KeyValue& rhs) const { return first_ == rhs.first_ && second_ == rhs.second_; }
|
||||
/// Test for inequality with another pair.
|
||||
|
@ -62,6 +69,10 @@ public:
|
|||
const T first_;
|
||||
/// Value.
|
||||
U second_;
|
||||
|
||||
private:
|
||||
/// Prevent assignment.
|
||||
KeyValue& operator = (const KeyValue& rhs);
|
||||
};
|
||||
|
||||
/// Hash map node.
|
||||
|
|
|
@ -56,6 +56,11 @@ public:
|
|||
~MutexLock();
|
||||
|
||||
private:
|
||||
/// Prevent copy construction.
|
||||
MutexLock(const MutexLock& rhs);
|
||||
/// Prevent assignment.
|
||||
MutexLock& operator = (const MutexLock& rhs);
|
||||
|
||||
/// Mutex reference.
|
||||
Mutex& mutex_;
|
||||
};
|
||||
|
|
|
@ -62,6 +62,12 @@ public:
|
|||
unsigned char drawableFlags_;
|
||||
/// Drawable layers to include.
|
||||
unsigned viewMask_;
|
||||
|
||||
private:
|
||||
/// Prevent copy construction.
|
||||
OctreeQuery(const OctreeQuery& rhs);
|
||||
/// Prevent assignment.
|
||||
OctreeQuery& operator = (const OctreeQuery& rhs);
|
||||
};
|
||||
|
||||
/// Point octree query.
|
||||
|
|
Загрузка…
Ссылка в новой задаче