Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and YiFang Xiao committed Oct 9, 2023
1 parent 4e61921 commit 0c25b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ class DslDictionary: public BtreeIndexing::BtreeDictionary

public:

DslDictionary( string const & id,
string const & indexFile,
vector< string > const & dictionaryFiles );
DslDictionary( string const & id, string const & indexFile, vector< string > const & dictionaryFiles );

void deferredInit() override;

Expand Down Expand Up @@ -283,9 +281,7 @@ class DslDictionary: public BtreeIndexing::BtreeDictionary
friend class DslFTSResultsRequest;
};

DslDictionary::DslDictionary( string const & id,
string const & indexFile,
vector< string > const & dictionaryFiles ):
DslDictionary::DslDictionary( string const & id, string const & indexFile, vector< string > const & dictionaryFiles ):
BtreeDictionary( id, dictionaryFiles ),
idx( indexFile, "rb" ),
idxHeader( idx.read< IdxHeader >() ),
Expand Down Expand Up @@ -838,8 +834,8 @@ string DslDictionary::nodeToHtml( ArticleDom::Node const & node )

string maxWidthStyle = " style=\"max-width:100%;\" ";

result += "<img src=\"" + url.toEncoded().data() + "\" " + maxWidthStyle
+ " alt=\"" + Html::escape( filename ) + "\"/>";
result +=
string("<img src=\"") + url.toEncoded().data() + "\" " + maxWidthStyle + " alt=\"" + Html::escape( filename ) + "\"/>";
}
else if ( Filetype::isNameOfVideo( filename ) ) {
QUrl url;
Expand Down
3 changes: 1 addition & 2 deletions src/dict/loaddictionaries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ void LoadDictionaries::handlePath( Config::Path const & path )
addDicts( Bgl::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this ) );
addDicts( Stardict::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this, maxHeadwordToExpand ) );
addDicts( Lsa::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this ) );
addDicts(
Dsl::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this, maxHeadwordSize ) );
addDicts( Dsl::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this, maxHeadwordSize ) );
addDicts( DictdFiles::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this ) );
addDicts( Xdxf::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this ) );
addDicts( Sdict::makeDictionaries( allFiles, Config::getIndexDir().toStdString(), *this ) );
Expand Down

0 comments on commit 0c25b78

Please sign in to comment.