Удалены конструкторы и операторы присвоения по умолчанию

This commit is contained in:
Andrei Astafev 2020-04-23 13:59:29 +03:00
parent d7968819b7
commit 45fa0f4f73
4 changed files with 23 additions and 0 deletions

View File

@ -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
*/

View File

@ -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 );

View File

@ -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& );

View File

@ -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
*/