mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +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;
|
||||
|
||||
{
|
||||
string footer;
|
||||
|
||||
if ( closePrevSpan ) {
|
||||
|
@ -720,7 +719,7 @@ void ArticleRequest::bodyFinished()
|
|||
|
||||
// Larger words are usually whole sentences - don't clutter the output
|
||||
// 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.
|
||||
stemmedWordFinder = std::make_shared< WordFinder >( this );
|
||||
|
@ -739,7 +738,6 @@ void ArticleRequest::bodyFinished()
|
|||
}
|
||||
|
||||
appendString( footer );
|
||||
}
|
||||
|
||||
if ( stemmedWordFinder.get() ) {
|
||||
update();
|
||||
|
|
|
@ -8,15 +8,6 @@
|
|||
|
||||
#include <QThreadPool>
|
||||
#include <QMessageBox>
|
||||
#include <qalgorithms.h>
|
||||
|
||||
#if defined( Q_OS_WIN32 )
|
||||
|
||||
#include "initializing.hh"
|
||||
#include <qt_windows.h>
|
||||
#include <QOperatingSystemVersion>
|
||||
|
||||
#endif
|
||||
#include "globalregex.hh"
|
||||
|
||||
namespace FTS {
|
||||
|
|
Loading…
Reference in a new issue