Skip to content

Commit a8e65f4

Browse files
committed
make more constructors constexpr
Signed-off-by: Rosen Penev <[email protected]>
1 parent 7671300 commit a8e65f4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/tiffcomposite_int.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,9 @@ class TiffDataEntryBase : public TiffEntryBase {
592592
//! @name Creators
593593
//@{
594594
//! Constructor
595-
TiffDataEntryBase(uint16_t tag, IfdId group, uint16_t szTag, IfdId szGroup);
595+
constexpr TiffDataEntryBase(uint16_t tag, IfdId group, uint16_t szTag, IfdId szGroup) :
596+
TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
597+
}
596598
//@}
597599

598600
~TiffDataEntryBase() override;

src/tiffvisitor_int.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,6 @@ static const TagInfo* findTag(const TagInfo* pList, uint16_t tag) {
344344
return pList->tag_ != 0xffff ? pList : nullptr;
345345
}
346346

347-
TiffDataEntryBase::TiffDataEntryBase(uint16_t tag, IfdId group, uint16_t szTag, IfdId szGroup) :
348-
TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
349-
}
350-
351347
TiffDataEntryBase::~TiffDataEntryBase() = default;
352348

353349
void TiffDecoder::decodeCanonAFInfo(const TiffEntryBase* object) {

0 commit comments

Comments
 (0)