mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
opt: refactor code (#1657)
* opt: refactor code * [autofix.ci] apply automated fixes * opt: refactor code * opt: refactor code * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
c42a79c7d4
commit
93ca284bad
|
@ -707,7 +707,6 @@ void ArticleRequest::bodyFinished()
|
||||||
|
|
||||||
bodyDone = true;
|
bodyDone = true;
|
||||||
|
|
||||||
{
|
|
||||||
string footer;
|
string footer;
|
||||||
|
|
||||||
if ( closePrevSpan ) {
|
if ( closePrevSpan ) {
|
||||||
|
@ -720,7 +719,7 @@ void ArticleRequest::bodyFinished()
|
||||||
|
|
||||||
// Larger words are usually whole sentences - don't clutter the output
|
// Larger words are usually whole sentences - don't clutter the output
|
||||||
// with their full bodies.
|
// with their full bodies.
|
||||||
footer += ArticleMaker::makeNotFoundBody( word.size() < 40 ? word : "", group.name );
|
footer += ArticleMaker::makeNotFoundBody( word.size() < 40 ? word : word.left( 40 ) + "...", group.name );
|
||||||
|
|
||||||
// When there were no definitions, we run stemmed search.
|
// When there were no definitions, we run stemmed search.
|
||||||
stemmedWordFinder = std::make_shared< WordFinder >( this );
|
stemmedWordFinder = std::make_shared< WordFinder >( this );
|
||||||
|
@ -739,7 +738,6 @@ void ArticleRequest::bodyFinished()
|
||||||
}
|
}
|
||||||
|
|
||||||
appendString( footer );
|
appendString( footer );
|
||||||
}
|
|
||||||
|
|
||||||
if ( stemmedWordFinder.get() ) {
|
if ( stemmedWordFinder.get() ) {
|
||||||
update();
|
update();
|
||||||
|
|
|
@ -8,15 +8,6 @@
|
||||||
|
|
||||||
#include <QThreadPool>
|
#include <QThreadPool>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <qalgorithms.h>
|
|
||||||
|
|
||||||
#if defined( Q_OS_WIN32 )
|
|
||||||
|
|
||||||
#include "initializing.hh"
|
|
||||||
#include <qt_windows.h>
|
|
||||||
#include <QOperatingSystemVersion>
|
|
||||||
|
|
||||||
#endif
|
|
||||||
#include "globalregex.hh"
|
#include "globalregex.hh"
|
||||||
|
|
||||||
namespace FTS {
|
namespace FTS {
|
||||||
|
|
Loading…
Reference in a new issue