Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#define NAZARA_DIRECTORY_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/NonCopyable.hpp>
|
||||
#include <Nazara/Core/String.hpp>
|
||||
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
@@ -28,11 +27,13 @@
|
||||
|
||||
class NzDirectoryImpl;
|
||||
|
||||
class NAZARA_CORE_API NzDirectory : NzNonCopyable
|
||||
class NAZARA_CORE_API NzDirectory
|
||||
{
|
||||
public:
|
||||
NzDirectory();
|
||||
NzDirectory(const NzString& dirPath);
|
||||
NzDirectory(const NzString& dirPath);
|
||||
NzDirectory(const NzDirectory&) = delete;
|
||||
NzDirectory(NzDirectory&&) = delete; ///TODO
|
||||
~NzDirectory();
|
||||
|
||||
void Close();
|
||||
@@ -63,6 +64,9 @@ class NAZARA_CORE_API NzDirectory : NzNonCopyable
|
||||
static bool Remove(const NzString& dirPath, bool emptyDirectory = false);
|
||||
static bool SetCurrent(const NzString& dirPath);
|
||||
|
||||
NzDirectory& operator=(const NzDirectory&) = delete;
|
||||
NzDirectory& operator=(NzDirectory&&) = delete; ///TODO
|
||||
|
||||
private:
|
||||
NazaraMutexAttrib(m_mutex, mutable)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user