From ab0b35b9ca1a808e276bdedddde407f7e143d1dd Mon Sep 17 00:00:00 2001 From: HamletDuFromage <61667930+HamletDuFromage@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:58:35 +0200 Subject: [PATCH] follow coding style in torrentscontroller.cpp --- src/webui/api/torrentscontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 7eec41e00..ef64f525e 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -2154,8 +2154,8 @@ void TorrentsController::setCommentAction() if (!torrent) throw APIError(APIErrorType::NotFound); - QString comment = params()[u"comment"_s].trimmed(); - comment.replace(QRegularExpression(u"\r?\n"_s), u" "_s); + QString comment = params()[u"comment"_s].trimmed() + .replace(QRegularExpression(u"\r?\n"_s), u" "_s); torrent->setComment(comment); setResult(QString());