1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Comply with Wdeprecated-copy

Remove implicitly declared copy constructors
This commit is contained in:
Anthony Bilinski 2022-03-10 23:39:57 -08:00
parent 919c6c9fe7
commit 288f44ba5a
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
4 changed files with 0 additions and 20 deletions

View File

@ -38,15 +38,6 @@ GroupId::GroupId()
{ {
} }
/**
* @brief The copy constructor.
* @param other GroupId to copy
*/
GroupId::GroupId(const GroupId& other)
: ContactId(other.id)
{
}
/** /**
* @brief Constructs a GroupId from bytes. * @brief Constructs a GroupId from bytes.
* @param rawId The bytes to construct the GroupId from. The lenght must be exactly * @param rawId The bytes to construct the GroupId from. The lenght must be exactly

View File

@ -27,7 +27,6 @@ class GroupId : public ContactId
{ {
public: public:
GroupId(); GroupId();
GroupId(const GroupId& other);
explicit GroupId(const QByteArray& rawId); explicit GroupId(const QByteArray& rawId);
explicit GroupId(const uint8_t* rawId); explicit GroupId(const uint8_t* rawId);
int getSize() const override; int getSize() const override;

View File

@ -42,15 +42,6 @@ ToxPk::ToxPk()
{ {
} }
/**
* @brief The copy constructor.
* @param other ToxPk to copy
*/
ToxPk::ToxPk(const ToxPk& other)
: ContactId(other.id)
{
}
/** /**
* @brief Constructs a ToxPk from bytes. * @brief Constructs a ToxPk from bytes.
* @param rawId The bytes to construct the ToxPk from. The lenght must be exactly * @param rawId The bytes to construct the ToxPk from. The lenght must be exactly

View File

@ -27,7 +27,6 @@ class ToxPk : public ContactId
{ {
public: public:
ToxPk(); ToxPk();
ToxPk(const ToxPk& other);
explicit ToxPk(const QByteArray& rawId); explicit ToxPk(const QByteArray& rawId);
explicit ToxPk(const uint8_t* rawId); explicit ToxPk(const uint8_t* rawId);
explicit ToxPk(const QString& pk); explicit ToxPk(const QString& pk);