Ещё удалены конструкторы и операторы присвоения по умолчанию
This commit is contained in:
parent
d244c67cba
commit
36a2a1d2c6
@ -89,10 +89,13 @@ class Paths
|
|||||||
protected:
|
protected:
|
||||||
Paths();
|
Paths();
|
||||||
~Paths() = default;
|
~Paths() = default;
|
||||||
Paths( const Paths& ) = delete; // NOLINT
|
|
||||||
Paths& operator=( const Paths& ) = delete; // NOLINT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Paths( const Paths& ) = delete;
|
||||||
|
Paths& operator=( const Paths& ) = delete;
|
||||||
|
Paths( Paths&& ) = delete;
|
||||||
|
Paths& operator=( Paths&& ) = delete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief getInstance
|
* @brief getInstance
|
||||||
* @return Уникальный экземпляр класса Paths
|
* @return Уникальный экземпляр класса Paths
|
||||||
|
@ -30,13 +30,17 @@ class PathsMT : public Paths
|
|||||||
{
|
{
|
||||||
PathsMT();
|
PathsMT();
|
||||||
~PathsMT() = default;
|
~PathsMT() = default;
|
||||||
PathsMT( const PathsMT& ) = delete; // NOLINT
|
|
||||||
PathsMT& operator=( const PathsMT& ) = delete; // NOLINT
|
|
||||||
|
|
||||||
static std::atomic< PathsMT* > mInstance;
|
static std::atomic< PathsMT* > mInstance;
|
||||||
static std::mutex mMutex;
|
static std::mutex mMutex;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
PathsMT( const PathsMT& ) = delete;
|
||||||
|
PathsMT& operator=( const PathsMT& ) = delete;
|
||||||
|
PathsMT( PathsMT&& ) = delete;
|
||||||
|
PathsMT& operator=( PathsMT&& ) = delete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief getInstance
|
* @brief getInstance
|
||||||
* @return Уникальный экземпляр класса PathsMT
|
* @return Уникальный экземпляр класса PathsMT
|
||||||
|
Loading…
Reference in New Issue
Block a user