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 Oct 8, 2023
1 parent f6767b0 commit 8cd67ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/article_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,9 @@ string ArticleMaker::makeEmptyPageHtml() const

sptr< Dictionary::DataRequest > ArticleMaker::makePicturePage( string const & url ) const
{
qDebug()<<"PICTuRE+++"<<url.c_str();
string const result = makeHtmlHeader( tr( "(picture)" ), QString(), true )
+ R"(<img src=")" + url + R"(" />)"
+ "</body></html>";
qDebug() << "PICTuRE+++" << url.c_str();
string const result =
makeHtmlHeader( tr( "(picture)" ), QString(), true ) + R"(<img src=")" + url + R"(" />)" + "</body></html>";

sptr< Dictionary::DataRequestInstant > r = std::make_shared< Dictionary::DataRequestInstant >( true );

Expand Down
4 changes: 2 additions & 2 deletions src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
GlobalBroadcaster::instance()->setPreference( &cfg.preferences );

localSchemeHandler = new LocalSchemeHandler( articleNetMgr, this );
QStringList htmlScheme = { "gdlookup","bword", "entry","gdpicture"};
QStringList htmlScheme = { "gdlookup", "bword", "entry", "gdpicture" };
for ( const auto & localScheme : htmlScheme ) {
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( localScheme.toLatin1(), localSchemeHandler );
}

iframeSchemeHandler = new IframeSchemeHandler( this );
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( "ifr", iframeSchemeHandler );

QStringList localSchemes = { "gdau", "gico", "qrcx", "bres", "gdprg", "gdvideo", "gdtts" };
QStringList localSchemes = { "gdau", "gico", "qrcx", "bres", "gdprg", "gdvideo", "gdtts" };
resourceSchemeHandler = new ResourceSchemeHandler( articleNetMgr, this );
for ( const auto & localScheme : localSchemes ) {
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( localScheme.toLatin1(), resourceSchemeHandler );
Expand Down

0 comments on commit 8cd67ee

Please sign in to comment.