diff --git a/src/article_maker.cc b/src/article_maker.cc
index d32d3352f..be390a11e 100644
--- a/src/article_maker.cc
+++ b/src/article_maker.cc
@@ -535,13 +535,13 @@ void ArticleRequest::altSearchFinished()
int ArticleRequest::findEndOfCloseDiv( const QString & str, int pos )
{
for ( ;; ) {
- const auto n1 = str.indexOf( "", pos );
+ const int n1 = str.indexOf( "", pos );
if ( n1 <= 0 ) {
return n1;
}
// will there be some custom tags starts with
,such as
- const auto n2 = str.indexOf( RX::Html::startDivTag, pos );
+ const int n2 = str.indexOf( RX::Html::startDivTag, pos );
if ( n2 <= 0 || n2 > n1 ) {
return n1 + 6;
}
@@ -569,7 +569,7 @@ bool ArticleRequest::isCollapsable( Dictionary::DataRequest & req, QString const
if ( !needExpandOptionalParts ) {
// Strip DSL optional parts
for ( ;; ) {
- const auto pos = text.indexOf( " 0 ) {
const int endPos = findEndOfCloseDiv( text, pos + 1 );
if ( endPos > pos ) {
@@ -792,7 +792,7 @@ int ArticleRequest::htmlTextSize( QString html )
html.remove( QRegularExpression( "]*>", QRegularExpression::CaseInsensitiveOption ) )
.remove( QRegularExpression( R"(