Skip to content

Commit e209154

Browse files
authored
Fix more typos
PR #23723.
1 parent ca8b6b0 commit e209154

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/base/bittorrent/bencoderesumedatastorage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ BitTorrent::LoadResumeDataResult BitTorrent::BencodeResumeDataStorage::loadTorre
305305

306306
if (!metadata.isEmpty())
307307
{
308-
const lt::bdecode_node torentInfoRoot = lt::bdecode(metadata, ec
308+
const lt::bdecode_node torrentInfoRoot = lt::bdecode(metadata, ec
309309
, nullptr, pref->getBdecodeDepthLimit(), pref->getBdecodeTokenLimit());
310310
if (ec)
311311
return nonstd::make_unexpected(tr("Cannot parse torrent info: %1").arg(QString::fromStdString(ec.message())));
312312

313-
if (torentInfoRoot.type() != lt::bdecode_node::dict_t)
313+
if (torrentInfoRoot.type() != lt::bdecode_node::dict_t)
314314
return nonstd::make_unexpected(tr("Cannot parse torrent info: invalid format"));
315315

316-
const auto torrentInfo = std::make_shared<lt::torrent_info>(torentInfoRoot, ec);
316+
const auto torrentInfo = std::make_shared<lt::torrent_info>(torrentInfoRoot, ec);
317317
if (ec)
318318
return nonstd::make_unexpected(tr("Cannot parse torrent info: %1").arg(QString::fromStdString(ec.message())));
319319

src/base/bittorrent/dbresumedatastorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,12 @@ LoadResumeDataResult DBResumeDataStorage::parseQueryResultRow(const QSqlQuery &q
680680
if (const QByteArray bencodedMetadata = query.value(DB_COLUMN_METADATA.name).toByteArray()
681681
; !bencodedMetadata.isEmpty())
682682
{
683-
const lt::bdecode_node torentInfoRoot = lt::bdecode(bencodedMetadata, ec
683+
const lt::bdecode_node torrentInfoRoot = lt::bdecode(bencodedMetadata, ec
684684
, nullptr, bdecodeDepthLimit, bdecodeTokenLimit);
685685
if (ec)
686686
return nonstd::make_unexpected(tr("Cannot parse torrent info: %1").arg(QString::fromStdString(ec.message())));
687687

688-
p.ti = std::make_shared<lt::torrent_info>(torentInfoRoot, ec);
688+
p.ti = std::make_shared<lt::torrent_info>(torrentInfoRoot, ec);
689689
if (ec)
690690
return nonstd::make_unexpected(tr("Cannot parse torrent info: %1").arg(QString::fromStdString(ec.message())));
691691
}

0 commit comments

Comments
 (0)