opt: remove unused qregexp

This commit is contained in:
Xiao Yi Fang 2024-06-21 17:14:15 +08:00 committed by xiaoyifang
parent 17ff4a3eff
commit 0bd6a6083c
3 changed files with 3 additions and 13 deletions

View file

@ -32,12 +32,6 @@
#include <QSemaphore>
#include <QThreadPool>
#if ( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) )
#include <QtCore5Compat/QRegExp>
#else
#include <QRegExp>
#endif
namespace Bgl {
using std::map;

View file

@ -28,10 +28,6 @@
#include <QTextCodec>
#include <QMap>
#include <QPair>
#include <QRegExp>
#if ( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) )
#include <QtCore5Compat>
#endif
#include <QProcess>
#include <QVector>
@ -792,7 +788,7 @@ string SlobDictionary::convert( const string & in, RefEntry const & entry )
pos = match.capturedEnd();
QStringList list = match.capturedTexts();
// Add empty strings for compatibility with QRegExp behaviour
// Add empty strings for compatibility with regex behaviour
for ( int i = match.lastCapturedIndex() + 1; i < 5; i++ )
list.append( QString() );

View file

@ -388,7 +388,7 @@ string ZimDictionary::convert( const string & in )
pos = match.capturedEnd();
QStringList list = match.capturedTexts();
// Add empty strings for compatibility with QRegExp behaviour
// Add empty strings for compatibility with regex behaviour
for ( int i = list.size(); i < 5; i++ )
list.append( QString() );
@ -435,7 +435,7 @@ string ZimDictionary::convert( const string & in )
pos = match.capturedEnd();
QStringList list = match.capturedTexts();
// Add empty strings for compatibility with QRegExp behaviour
// Add empty strings for compatibility with regex behaviour
for ( int i = match.lastCapturedIndex() + 1; i < 3; i++ )
list.append( QString() );