Browse Source

refactor: Comply with Wdeprecated-copy

Remove implicitly declared copy constructors
reviewable/pr6551/r7
Anthony Bilinski 4 years ago
parent
commit
288f44ba5a
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 9
      src/core/groupid.cpp
  2. 1
      src/core/groupid.h
  3. 9
      src/core/toxpk.cpp
  4. 1
      src/core/toxpk.h

9
src/core/groupid.cpp

@ -38,15 +38,6 @@ GroupId::GroupId() @@ -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

1
src/core/groupid.h

@ -27,7 +27,6 @@ class GroupId : public ContactId @@ -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;

9
src/core/toxpk.cpp

@ -42,15 +42,6 @@ ToxPk::ToxPk() @@ -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

1
src/core/toxpk.h

@ -27,7 +27,6 @@ class ToxPk : public ContactId @@ -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…
Cancel
Save