mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
lint
This commit is contained in:
parent
b28fa86e6a
commit
9a90f8868f
3 changed files with 3 additions and 3 deletions
|
@ -1074,7 +1074,7 @@ ChatPage::verifyOneTimeKeyCountAfterStartup()
|
||||||
c->second > std::numeric_limits<std::uint16_t>::max()
|
c->second > std::numeric_limits<std::uint16_t>::max()
|
||||||
? std::numeric_limits<std::uint16_t>::max()
|
? std::numeric_limits<std::uint16_t>::max()
|
||||||
: static_cast<std::uint16_t>(c->second);
|
: static_cast<std::uint16_t>(c->second);
|
||||||
count = c->second;
|
count = c->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
nhlog::crypto()->info(
|
nhlog::crypto()->info(
|
||||||
|
|
|
@ -172,7 +172,7 @@ MxcImageProvider::download(const QString &id,
|
||||||
opts.width = static_cast<uint8_t>(requestedSize.width() > 0 ? requestedSize.width() : -1);
|
opts.width = static_cast<uint8_t>(requestedSize.width() > 0 ? requestedSize.width() : -1);
|
||||||
opts.height =
|
opts.height =
|
||||||
static_cast<uint8_t>(requestedSize.height() > 0 ? requestedSize.height() : -1);
|
static_cast<uint8_t>(requestedSize.height() > 0 ? requestedSize.height() : -1);
|
||||||
opts.method = crop ? "crop" : "scale";
|
opts.method = crop ? "crop" : "scale";
|
||||||
http::client()->get_thumbnail(
|
http::client()->get_thumbnail(
|
||||||
opts,
|
opts,
|
||||||
[fileInfo, requestedSize, radius, then, id, crop, cropLocally](
|
[fileInfo, requestedSize, radius, then, id, crop, cropLocally](
|
||||||
|
|
|
@ -557,7 +557,7 @@ utils::escapeBlacklistedHtml(const QString &rawStr)
|
||||||
attrValueEnds.end());
|
attrValueEnds.end());
|
||||||
auto val = sanitizeValue(QByteArray(
|
auto val = sanitizeValue(QByteArray(
|
||||||
attrStart, static_cast<int>(valueEnd - attrStart)));
|
attrStart, static_cast<int>(valueEnd - attrStart)));
|
||||||
attrStart = consumeSpaces(valueEnd);
|
attrStart = consumeSpaces(valueEnd);
|
||||||
|
|
||||||
if (val.contains('"'))
|
if (val.contains('"'))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue