Fix FTBFS for build with builtin libchm.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 6 years ago
parent db17d12f24
commit 2ac1800224
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -531,13 +531,8 @@ bool LCHMFileImpl::ResolveObject(const TQString& fileName, chmUnitInfo *ui) cons
size_t LCHMFileImpl::RetrieveObject(const chmUnitInfo *ui, unsigned char *buffer, size_t LCHMFileImpl::RetrieveObject(const chmUnitInfo *ui, unsigned char *buffer,
LONGUINT64 fileOffset, LONGINT64 bufferSize) const LONGUINT64 fileOffset, LONGINT64 bufferSize) const
{ {
#if USE_BUILTIN_CHMLIB
return ::chm_retrieve_object(m_chmFile, ui, buffer,
fileOffset, bufferSize);
#else
return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui), return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui),
buffer, fileOffset, bufferSize); buffer, fileOffset, bufferSize);
#endif
} }

@ -62,13 +62,8 @@ private:
// Retrieve an object from the CHM file // Retrieve an object from the CHM file
inline size_t RetrieveObject (const chmUnitInfo *ui, unsigned char *buffer, LONGUINT64 fileOffset, LONGINT64 bufferSize) inline size_t RetrieveObject (const chmUnitInfo *ui, unsigned char *buffer, LONGUINT64 fileOffset, LONGINT64 bufferSize)
{ {
#if USE_BUILTIN_CHMLIB
return ::chm_retrieve_object(m_chmFile, ui, buffer,
fileOffset, bufferSize);
#else
return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui), return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui),
buffer, fileOffset, bufferSize); buffer, fileOffset, bufferSize);
#endif
} }
// An opened file name, if presend // An opened file name, if presend

Loading…
Cancel
Save