mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: remove unused parameter
This commit is contained in:
parent
60adc6ef75
commit
389471f5fa
|
@ -456,7 +456,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz
|
|||
// See "Type identifiers" at http://www.huzheng.org/stardict/StarDictFileFormat
|
||||
switch ( type ) {
|
||||
case 'x': // Xdxf content
|
||||
return Xdxf2Html::convert( string( resource, size ), Xdxf2Html::STARDICT, NULL, this, &resourceZip );
|
||||
return Xdxf2Html::convert( string( resource, size ), Xdxf2Html::STARDICT, NULL, this );
|
||||
case 'h': // Html content
|
||||
{
|
||||
QString articleText = QString( "<div class=\"sdct_h\">" ) + QString::fromUtf8( resource, size ) + "</div>";
|
||||
|
|
|
@ -633,7 +633,6 @@ void XdxfDictionary::loadArticle( uint32_t address, string & articleText, QStrin
|
|||
Xdxf2Html::XDXF,
|
||||
idxHeader.hasAbrv ? &abrv : NULL,
|
||||
this,
|
||||
&resourceZip,
|
||||
fType == Logical,
|
||||
idxHeader.revisionNumber,
|
||||
headword );
|
||||
|
|
|
@ -70,7 +70,6 @@ string convert( string const & in,
|
|||
DICT_TYPE type,
|
||||
map< string, string > const * pAbrv,
|
||||
Dictionary::Class * dictPtr,
|
||||
IndexedZip * resourceZip,
|
||||
bool isLogicalFormat,
|
||||
unsigned revisionNumber,
|
||||
QString * headword )
|
||||
|
|
|
@ -27,7 +27,6 @@ string convert( string const &,
|
|||
DICT_TYPE type,
|
||||
map< string, string > const * pAbrv,
|
||||
Dictionary::Class * dictPtr,
|
||||
IndexedZip * resourceZip,
|
||||
bool isLogicalFormat = false,
|
||||
unsigned revisionNumber = 0,
|
||||
QString * headword = 0 );
|
||||
|
|
|
@ -1141,11 +1141,6 @@ void ArticleView::openLink( QUrl const & url, QUrl const & ref, QString const &
|
|||
}
|
||||
|
||||
ResourceToSaveHandler * ArticleView::saveResource( const QUrl & url, const QString & fileName )
|
||||
{
|
||||
return saveResource( url, webview->url(), fileName );
|
||||
}
|
||||
|
||||
ResourceToSaveHandler * ArticleView::saveResource( const QUrl & url, const QUrl & ref, const QString & fileName )
|
||||
{
|
||||
ResourceToSaveHandler * handler = new ResourceToSaveHandler( this, fileName );
|
||||
sptr< Dictionary::DataRequest > req;
|
||||
|
@ -1659,7 +1654,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos )
|
|||
if ( !fileName.isEmpty() ) {
|
||||
QFileInfo fileInfo( fileName );
|
||||
emit storeResourceSavePath( QDir::toNativeSeparators( fileInfo.absoluteDir().absolutePath() ) );
|
||||
saveResource( url, webview->url(), fileName );
|
||||
saveResource( url, fileName );
|
||||
}
|
||||
}
|
||||
else if ( result == openImageAction ) {
|
||||
|
@ -1682,7 +1677,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos )
|
|||
|
||||
if ( !fileName.isEmpty() ) {
|
||||
QFileInfo fileInfo( fileName );
|
||||
auto handler = saveResource( url, webview->url(), fileName );
|
||||
auto handler = saveResource( url, fileName );
|
||||
|
||||
if ( !handler->isEmpty() ) {
|
||||
connect( handler, &ResourceToSaveHandler::done, this, [ fileName ]() {
|
||||
|
|
|
@ -248,7 +248,6 @@ public:
|
|||
void setActiveArticleId( QString const & );
|
||||
|
||||
ResourceToSaveHandler * saveResource( const QUrl & url, const QString & fileName );
|
||||
ResourceToSaveHandler * saveResource( const QUrl & url, const QUrl & ref, const QString & fileName );
|
||||
|
||||
void findText( QString & text,
|
||||
const QWebEnginePage::FindFlags & f,
|
||||
|
|
Loading…
Reference in a new issue