From 36a2a1d2c60f3088ff5b36c3b32f80b648fe9f3b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 23 Apr 2020 14:17:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1=83?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D1=80=D1=8B=20=D0=B8=20=D0=BE=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D0=BE=D1=80=D1=8B=20=D0=BF=D1=80=D0=B8=D1=81?= =?UTF-8?q?=D0=B2=D0=BE=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D1=83?= =?UTF-8?q?=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/myx/filesystem/paths.hpp | 7 +++++-- src/myx/filesystem/paths_mt.hpp | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/myx/filesystem/paths.hpp b/src/myx/filesystem/paths.hpp index 812a5a9..2b474f6 100644 --- a/src/myx/filesystem/paths.hpp +++ b/src/myx/filesystem/paths.hpp @@ -89,10 +89,13 @@ class Paths protected: Paths(); ~Paths() = default; - Paths( const Paths& ) = delete; // NOLINT - Paths& operator=( const Paths& ) = delete; // NOLINT public: + Paths( const Paths& ) = delete; + Paths& operator=( const Paths& ) = delete; + Paths( Paths&& ) = delete; + Paths& operator=( Paths&& ) = delete; + /** * @brief getInstance * @return Уникальный экземпляр класса Paths diff --git a/src/myx/filesystem/paths_mt.hpp b/src/myx/filesystem/paths_mt.hpp index 0d3e4c2..16915d0 100644 --- a/src/myx/filesystem/paths_mt.hpp +++ b/src/myx/filesystem/paths_mt.hpp @@ -30,13 +30,17 @@ class PathsMT : public Paths { PathsMT(); ~PathsMT() = default; - PathsMT( const PathsMT& ) = delete; // NOLINT - PathsMT& operator=( const PathsMT& ) = delete; // NOLINT static std::atomic< PathsMT* > mInstance; static std::mutex mMutex; + public: + PathsMT( const PathsMT& ) = delete; + PathsMT& operator=( const PathsMT& ) = delete; + PathsMT( PathsMT&& ) = delete; + PathsMT& operator=( PathsMT&& ) = delete; + /** * @brief getInstance * @return Уникальный экземпляр класса PathsMT