mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03: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;
|
continueMatching = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !continueMatching )
|
if ( !continueMatching ) {
|
||||||
footer += "</body></html>";
|
footer += "</body></html>";
|
||||||
|
|
||||||
{
|
|
||||||
appendString( footer );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
appendString( footer );
|
||||||
|
|
||||||
if ( continueMatching )
|
if ( continueMatching )
|
||||||
update();
|
update();
|
||||||
else
|
else
|
||||||
|
@ -902,8 +901,6 @@ void ArticleRequest::compoundSearchNextStep( bool lastSearchSucceeded )
|
||||||
|
|
||||||
if ( lastGoodCompoundResult.size() ) // We have something to append
|
if ( lastGoodCompoundResult.size() ) // We have something to append
|
||||||
{
|
{
|
||||||
// GD_DPRINTF( "Appending\n" );
|
|
||||||
|
|
||||||
if ( !firstCompoundWasFound ) {
|
if ( !firstCompoundWasFound ) {
|
||||||
// Append the beginning
|
// Append the beginning
|
||||||
footer += R"(<div class="gdstemmedsuggestion"><span class="gdstemmedsuggestion_head">)"
|
footer += R"(<div class="gdstemmedsuggestion"><span class="gdstemmedsuggestion_head">)"
|
||||||
|
|
Loading…
Reference in a new issue