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
|
class LANGUAGECLIENT_EXPORT Client : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_DISABLE_COPY_MOVE(Client)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Client(BaseClientInterface *clientInterface, const Utils::Id &id = {}); // takes ownership
|
explicit Client(BaseClientInterface *clientInterface, const Utils::Id &id = {}); // takes ownership
|
||||||
~Client() override;
|
~Client() override;
|
||||||
|
|
||||||
Client(const Client &) = delete;
|
|
||||||
Client(Client &&) = delete;
|
|
||||||
Client &operator=(const Client &) = delete;
|
|
||||||
Client &operator=(Client &&) = delete;
|
|
||||||
|
|
||||||
// basic properties
|
// basic properties
|
||||||
Utils::Id id() const;
|
Utils::Id id() const;
|
||||||
void setName(const QString &name);
|
void setName(const QString &name);
|
||||||
|
|||||||
@@ -52,15 +52,12 @@ private:
|
|||||||
class LANGUAGECLIENT_EXPORT StdIOClientInterface : public BaseClientInterface
|
class LANGUAGECLIENT_EXPORT StdIOClientInterface : public BaseClientInterface
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_DISABLE_COPY_MOVE(StdIOClientInterface)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StdIOClientInterface();
|
StdIOClientInterface();
|
||||||
~StdIOClientInterface() override;
|
~StdIOClientInterface() override;
|
||||||
|
|
||||||
StdIOClientInterface(const StdIOClientInterface &) = delete;
|
|
||||||
StdIOClientInterface(StdIOClientInterface &&) = delete;
|
|
||||||
StdIOClientInterface &operator=(const StdIOClientInterface &) = delete;
|
|
||||||
StdIOClientInterface &operator=(StdIOClientInterface &&) = delete;
|
|
||||||
|
|
||||||
void startImpl() override;
|
void startImpl() override;
|
||||||
|
|
||||||
// These functions only have an effect if they are called before start
|
// These functions only have an effect if they are called before start
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ class LanguageClientMark;
|
|||||||
class LANGUAGECLIENT_EXPORT LanguageClientManager : public QObject
|
class LANGUAGECLIENT_EXPORT LanguageClientManager : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_DISABLE_COPY_MOVE(LanguageClientManager)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LanguageClientManager(const LanguageClientManager &other) = delete;
|
|
||||||
LanguageClientManager(LanguageClientManager &&other) = delete;
|
|
||||||
~LanguageClientManager() override;
|
~LanguageClientManager() override;
|
||||||
|
|
||||||
static void init();
|
static void init();
|
||||||
|
|||||||
Reference in New Issue
Block a user