From 45fa0f4f73647dc8a203912fb34a2febea73953a Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 23 Apr 2020 13:59:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D1=8B=20=D0=B8=20=D0=BE=D0=BF=D0=B5=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D1=8B=20=D0=BF=D1=80=D0=B8=D1=81=D0=B2=D0=BE=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB?= =?UTF-8?q?=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/redis/client.hpp | 5 +++++ src/myx/redis/lexer.hpp | 7 +++++++ src/myx/redis/parser.hpp | 6 ++++++ src/myx/redis/request.hpp | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/src/myx/redis/client.hpp b/src/myx/redis/client.hpp index d1a36f1..da914a7 100644 --- a/src/myx/redis/client.hpp +++ b/src/myx/redis/client.hpp @@ -31,6 +31,11 @@ public: */ explicit Client( QObject* parent = nullptr ); + Client( const Client& ) = delete; + Client& operator=( const Client& ) = delete; + Client( Client&& ) = delete; + Client& operator=( Client&& ) = delete; + /** * @brief Destroys the client */ diff --git a/src/myx/redis/lexer.hpp b/src/myx/redis/lexer.hpp index 77ec58d..35cd881 100644 --- a/src/myx/redis/lexer.hpp +++ b/src/myx/redis/lexer.hpp @@ -18,6 +18,13 @@ class Lexer : public QObject public: explicit Lexer( QIODevice*, QObject* = nullptr ); + + Lexer( const Lexer& ) = delete; + Lexer& operator=( const Lexer& ) = delete; + Lexer( Lexer&& ) = delete; + Lexer& operator=( Lexer&& ) = delete; + + ~Lexer() override = default; Q_SIGNAL void character( char ); diff --git a/src/myx/redis/parser.hpp b/src/myx/redis/parser.hpp index 0a40ae4..28f8720 100644 --- a/src/myx/redis/parser.hpp +++ b/src/myx/redis/parser.hpp @@ -22,6 +22,12 @@ class Parser : public QObject public: explicit Parser( Lexer*, QObject* = nullptr ); + + Parser( const Parser& ) = delete; + Parser& operator=( const Parser& ) = delete; + Parser( Parser&& ) = delete; + Parser& operator=( Parser&& ) = delete; + ~Parser() override = default; Q_SIGNAL void reply( const myx::redis::Reply& ); diff --git a/src/myx/redis/request.hpp b/src/myx/redis/request.hpp index a34f773..a4e52e9 100644 --- a/src/myx/redis/request.hpp +++ b/src/myx/redis/request.hpp @@ -29,6 +29,11 @@ public: */ explicit Request( QObject* parent = nullptr ); + Request( const Request& ) = delete; + Request& operator=( const Request& ) = delete; + Request( Request&& ) = delete; + Request& operator=( Request&& ) = delete; + /** * @brief Destroys the request */