diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:14:46 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:14:46 +0200 |
commit | 9a90f8868fb0413b54a8caee6d1c4ba01eaeaa2a (patch) | |
tree | 2afdb3d2e791f48c1ac996ca77dea9ee0006d38d /src | |
parent | Enable -Wconversion (diff) | |
download | nheko-9a90f8868fb0413b54a8caee6d1c4ba01eaeaa2a.tar.xz |
lint
Diffstat (limited to 'src')
-rw-r--r-- | src/ChatPage.cpp | 2 | ||||
-rw-r--r-- | src/MxcImageProvider.cpp | 2 | ||||
-rw-r--r-- | src/Utils.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 2ea987c2..e40274cb 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -1074,7 +1074,7 @@ ChatPage::verifyOneTimeKeyCountAfterStartup() c->second > std::numeric_limits<std::uint16_t>::max() ? std::numeric_limits<std::uint16_t>::max() : static_cast<std::uint16_t>(c->second); - count = c->second; + count = c->second; } nhlog::crypto()->info( diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp index 26ffb934..0dc96e5a 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp @@ -172,7 +172,7 @@ MxcImageProvider::download(const QString &id, opts.width = static_cast<uint8_t>(requestedSize.width() > 0 ? requestedSize.width() : -1); opts.height = static_cast<uint8_t>(requestedSize.height() > 0 ? requestedSize.height() : -1); - opts.method = crop ? "crop" : "scale"; + opts.method = crop ? "crop" : "scale"; http::client()->get_thumbnail( opts, [fileInfo, requestedSize, radius, then, id, crop, cropLocally]( diff --git a/src/Utils.cpp b/src/Utils.cpp index c782fa48..c19871bc 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -557,7 +557,7 @@ utils::escapeBlacklistedHtml(const QString &rawStr) attrValueEnds.end()); auto val = sanitizeValue(QByteArray( attrStart, static_cast<int>(valueEnd - attrStart))); - attrStart = consumeSpaces(valueEnd); + attrStart = consumeSpaces(valueEnd); if (val.contains('"')) continue; |