Remove usage of C++17 features in heif code

This commit is contained in:
Mikhail Lobotskiy
2025-08-13 11:38:12 +04:00
parent e2bcf62cc4
commit 06c47b07ec
2 changed files with 5 additions and 3 deletions

View File

@ -15,6 +15,8 @@ public:
};
namespace NSHeif {
NSUnicodeConverter::CUnicodeConverter CHeifFile::m_oConverter{};
bool CHeifFile::isHeif(const std::wstring& fileName)
{
heif_context* ctx = heif_context_alloc();

View File

@ -15,8 +15,8 @@ namespace NSHeif {
static bool Save(const BYTE* source, int width, int height, int sourceStride, const std::wstring& dstPath);
private:
static inline bool IsError(heif_error err);
static inline bool Decode(heif_context* ctx, CBgraFrame* frame);
static inline NSUnicodeConverter::CUnicodeConverter m_oConverter{};
static bool IsError(heif_error err);
static bool Decode(heif_context* ctx, CBgraFrame* frame);
static NSUnicodeConverter::CUnicodeConverter m_oConverter;
};
}