diff --git a/epwing_book.cc b/epwing_book.cc index 4ed8c931..d24fbc87 100644 --- a/epwing_book.cc +++ b/epwing_book.cc @@ -13,9 +13,6 @@ #include "wstring_qt.hh" #include "folding.hh" #include "epwing_charmap.hh" -#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) -#include -#endif #if defined( Q_OS_WIN32 ) || defined( Q_OS_MAC ) #define _FILE_OFFSET_BITS 64 @@ -1207,8 +1204,8 @@ void EpwingBook::finalizeText( QString & text ) // Replace references int pos = 0; - QRegularExpression reg1( "" ); - QRegularExpression reg2( "" ); + QRegularExpression reg1( "", QRegularExpression::CaseInsensitiveOption ); + QRegularExpression reg2( "", QRegularExpression::CaseInsensitiveOption ); EContainer cont( this, true ); @@ -1751,8 +1748,7 @@ QByteArray EpwingBook::handleReference( EB_Hook_Code code, const unsigned int * refPages.append( argv[ 1 ] ); refOffsets.append( argv[ 2 ] ); - QString str; - str.asprintf( "", refCloseCount ); + QString str = QString( "" ).arg( refCloseCount ); refCloseCount += 1; return str.toUtf8();