LanguageClient: Use Q_DISABLE_COPY_MOVE

Change-Id: Iee54086810442b64cb8b7aa68a48341909481787
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2023-04-23 10:34:37 +02:00
parent b1e65195ac
commit 2839d019b8
3 changed files with 5 additions and 12 deletions

View File

@@ -48,16 +48,12 @@ class SymbolSupport;
class LANGUAGECLIENT_EXPORT Client : public QObject
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(Client)
public:
explicit Client(BaseClientInterface *clientInterface, const Utils::Id &id = {}); // takes ownership
~Client() override;
Client(const Client &) = delete;
Client(Client &&) = delete;
Client &operator=(const Client &) = delete;
Client &operator=(Client &&) = delete;
// basic properties
Utils::Id id() const;
void setName(const QString &name);