forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
@@ -52,15 +52,12 @@ private:
|
||||
class LANGUAGECLIENT_EXPORT StdIOClientInterface : public BaseClientInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY_MOVE(StdIOClientInterface)
|
||||
|
||||
public:
|
||||
StdIOClientInterface();
|
||||
~StdIOClientInterface() override;
|
||||
|
||||
StdIOClientInterface(const StdIOClientInterface &) = delete;
|
||||
StdIOClientInterface(StdIOClientInterface &&) = delete;
|
||||
StdIOClientInterface &operator=(const StdIOClientInterface &) = delete;
|
||||
StdIOClientInterface &operator=(StdIOClientInterface &&) = delete;
|
||||
|
||||
void startImpl() override;
|
||||
|
||||
// These functions only have an effect if they are called before start
|
||||
|
||||
@@ -30,9 +30,9 @@ class LanguageClientMark;
|
||||
class LANGUAGECLIENT_EXPORT LanguageClientManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY_MOVE(LanguageClientManager)
|
||||
|
||||
public:
|
||||
LanguageClientManager(const LanguageClientManager &other) = delete;
|
||||
LanguageClientManager(LanguageClientManager &&other) = delete;
|
||||
~LanguageClientManager() override;
|
||||
|
||||
static void init();
|
||||
|
||||
Reference in New Issue
Block a user