mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Merge pull request #1225 from xiaoyifang/opt/refactor-code
opt: make code more readable
This commit is contained in:
commit
0bf06a3099
|
@ -880,13 +880,12 @@ void ArticleRequest::stemmedSearchFinished()
|
|||
continueMatching = true;
|
||||
}
|
||||
|
||||
if ( !continueMatching )
|
||||
if ( !continueMatching ) {
|
||||
footer += "</body></html>";
|
||||
|
||||
{
|
||||
appendString( footer );
|
||||
}
|
||||
|
||||
appendString( footer );
|
||||
|
||||
if ( continueMatching )
|
||||
update();
|
||||
else
|
||||
|
@ -902,8 +901,6 @@ void ArticleRequest::compoundSearchNextStep( bool lastSearchSucceeded )
|
|||
|
||||
if ( lastGoodCompoundResult.size() ) // We have something to append
|
||||
{
|
||||
// GD_DPRINTF( "Appending\n" );
|
||||
|
||||
if ( !firstCompoundWasFound ) {
|
||||
// Append the beginning
|
||||
footer += R"(<div class="gdstemmedsuggestion"><span class="gdstemmedsuggestion_head">)"
|
||||
|
|
Loading…
Reference in a new issue