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:
parent
919c6c9fe7
commit
288f44ba5a
|
@ -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.
|
||||
* @param rawId The bytes to construct the GroupId from. The lenght must be exactly
|
||||
|
|
|
@ -27,7 +27,6 @@ class GroupId : public ContactId
|
|||
{
|
||||
public:
|
||||
GroupId();
|
||||
GroupId(const GroupId& other);
|
||||
explicit GroupId(const QByteArray& rawId);
|
||||
explicit GroupId(const uint8_t* rawId);
|
||||
int getSize() const override;
|
||||
|
|
|
@ -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.
|
||||
* @param rawId The bytes to construct the ToxPk from. The lenght must be exactly
|
||||
|
|
|
@ -27,7 +27,6 @@ class ToxPk : public ContactId
|
|||
{
|
||||
public:
|
||||
ToxPk();
|
||||
ToxPk(const ToxPk& other);
|
||||
explicit ToxPk(const QByteArray& rawId);
|
||||
explicit ToxPk(const uint8_t* rawId);
|
||||
explicit ToxPk(const QString& pk);
|
||||
|
|
Loading…
Reference in New Issue
Block a user