From 9eaf488c8e5b591884c405978b52ff37de6256aa Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 16 Nov 2024 14:14:45 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/dict/dictserver.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dict/dictserver.cc b/src/dict/dictserver.cc index 71bdb262..f32473e9 100644 --- a/src/dict/dictserver.cc +++ b/src/dict/dictserver.cc @@ -820,7 +820,7 @@ void DictServerArticleRequest::readData( QByteArray reply ) dbID = reply.mid( pos, endPos - pos ); // Retrieve database ID - pos = endPos + 1; + pos = endPos + 1; if ( reply[ pos ] == '\"' ) { endPos = reply.indexOf( '\"', pos + 1 ) + 1; } @@ -855,10 +855,9 @@ void DictServerArticleRequest::readData( QByteArray reply ) qDebug() << "reply data:" << reply << QDateTime::currentDateTime(); if ( articleText.contains( ".\r\n" ) ) { //discard all left message. - emit finishedArticle( articleText ); - return; - } - + emit finishedArticle( articleText ); + return; + } } else { reply = dictImpl->socket.readAll();