mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
remove extra parantheses
This commit is contained in:
parent
02f7fc0048
commit
947323854a
|
@ -503,7 +503,6 @@ void FTSResultsRequest::checkSingleArticle( uint32_t offset,
|
|||
if( searchMode == FTS::Wildcards || searchMode == FTS::RegExp )
|
||||
{
|
||||
// for( int i = 0; i < offsets.size(); i++ )
|
||||
{
|
||||
if( Utils::AtomicInt::loadAcquire( isCancelled ) )
|
||||
return;
|
||||
|
||||
|
@ -529,7 +528,6 @@ void FTSResultsRequest::checkSingleArticle( uint32_t offset,
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Words mode
|
||||
|
@ -542,7 +540,6 @@ void FTSResultsRequest::checkSingleArticle( uint32_t offset,
|
|||
}
|
||||
|
||||
// for( int i = 0; i < offsets.size(); i++ )
|
||||
{
|
||||
if( Utils::AtomicInt::loadAcquire( isCancelled ) )
|
||||
return;
|
||||
|
||||
|
@ -653,14 +650,14 @@ void FTSResultsRequest::checkSingleArticle( uint32_t offset,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if( !offsetsForHeadwords.isEmpty() )
|
||||
{
|
||||
QVector< QString > headwords;
|
||||
Mutex::Lock _( dataMutex );
|
||||
|
||||
dict.getHeadwordsFromOffsets( offsetsForHeadwords, headwords, &isCancelled );
|
||||
for( int x = 0; x < headwords.size(); x++ )
|
||||
{
|
||||
Mutex::Lock _( dataMutex );
|
||||
foundHeadwords->append( FTS::FtsHeadword( headwords.at( x ),
|
||||
id,
|
||||
x < hiliteRegExps.size() ? hiliteRegExps.at( x ) : QStringList(),
|
||||
|
@ -844,7 +841,7 @@ void FTSResultsRequest::combinedIndexSearch( BtreeIndexing::BtreeIndex & ftsInde
|
|||
|
||||
// allWordsLinks[ wordNom ] = setOfOffsets;
|
||||
// setOfOffsets.clear();
|
||||
wordNom += 1;
|
||||
// wordNom += 1;
|
||||
}
|
||||
|
||||
if( setOfOffsets.isEmpty() )
|
||||
|
|
Loading…
Reference in a new issue