mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: remove unused qregexp
This commit is contained in:
parent
17ff4a3eff
commit
0bd6a6083c
|
@ -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;
|
||||
|
|
|
@ -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() );
|
||||
|
||||
|
|
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue