mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
follow coding style in torrentscontroller.cpp
This commit is contained in:
parent
2e60d6cc45
commit
ab0b35b9ca
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue