Add private copy constructor / assignment where necessary to prevent warnings.

This commit is contained in:
Lasse Öörni 2014-09-19 01:56:05 +03:00
Родитель 76c4d8f21a
Коммит 0ee5f2fe1c
3 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

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