fix copy constructors

clang-tidy couldn't transform these because of missing members

Found with cppcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
main
Rosen Penev 2 years ago
parent ed673727a9
commit aefd901bef

@ -141,25 +141,6 @@ TiffEntryBase::TiffEntryBase(const TiffEntryBase& rhs) :
storage_(rhs.storage_) { storage_(rhs.storage_) {
} }
TiffDirectory::TiffDirectory(const TiffDirectory& rhs) : TiffComponent(rhs), hasNext_(rhs.hasNext_) {
}
TiffSubIfd::TiffSubIfd(const TiffSubIfd& rhs) : TiffEntryBase(rhs), newGroup_(rhs.newGroup_) {
}
TiffBinaryArray::TiffBinaryArray(const TiffBinaryArray& rhs) :
TiffEntryBase(rhs),
cfgSelFct_(rhs.cfgSelFct_),
arraySet_(rhs.arraySet_),
arrayCfg_(rhs.arrayCfg_),
arrayDef_(rhs.arrayDef_),
defSize_(rhs.defSize_),
setSize_(rhs.setSize_),
origData_(rhs.origData_),
origSize_(rhs.origSize_),
pRoot_(rhs.pRoot_) {
}
TiffComponent::UniquePtr TiffComponent::clone() const { TiffComponent::UniquePtr TiffComponent::clone() const {
return UniquePtr(doClone()); return UniquePtr(doClone());
} }

@ -864,7 +864,7 @@ class TiffDirectory : public TiffComponent {
//! @name Protected Creators //! @name Protected Creators
//@{ //@{
//! Copy constructor (used to implement clone()). //! Copy constructor (used to implement clone()).
TiffDirectory(const TiffDirectory& rhs); TiffDirectory(const TiffDirectory&) = default;
//@} //@}
//! @name Protected Manipulators //! @name Protected Manipulators
@ -958,7 +958,7 @@ class TiffSubIfd : public TiffEntryBase {
//! @name Protected Creators //! @name Protected Creators
//@{ //@{
//! Copy constructor (used to implement clone()). //! Copy constructor (used to implement clone()).
TiffSubIfd(const TiffSubIfd& rhs); TiffSubIfd(const TiffSubIfd&) = default;
TiffSubIfd& operator=(const TiffSubIfd&) = delete; TiffSubIfd& operator=(const TiffSubIfd&) = delete;
//@} //@}
@ -1360,7 +1360,7 @@ class TiffBinaryArray : public TiffEntryBase {
//! @name Protected Creators //! @name Protected Creators
//@{ //@{
//! Copy constructor (used to implement clone()). //! Copy constructor (used to implement clone()).
TiffBinaryArray(const TiffBinaryArray& rhs); TiffBinaryArray(const TiffBinaryArray&) = default;
//@} //@}
//! @name Protected Manipulators //! @name Protected Manipulators

Loading…
Cancel
Save