default init static variable

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-08-03 17:04:10 -07:00
parent d4f04296e4
commit 5e20467e5c
2 changed files with 1 additions and 3 deletions

View File

@ -127,8 +127,6 @@ const CrwSubDir CrwMap::crwSubDir_[] = {
{0x2807, 0x300a}, {0x2804, 0x300a}, {0x300a, 0x0000}, {0x0000, 0xffff},
};
const char CiffHeader::signature_[] = "HEAPCCDR";
CiffDirectory::~CiffDirectory() {
for (auto&& component : components_) {
delete component;

View File

@ -480,7 +480,7 @@ class CiffHeader {
private:
// DATA
static const char signature_[]; //!< Canon CRW signature "HEAPCCDR"
static constexpr auto signature_ = "HEAPCCDR"; //!< Canon CRW signature
std::unique_ptr<CiffDirectory> pRootDir_; //!< Pointer to the root directory
ByteOrder byteOrder_ = littleEndian; //!< Applicable byte order