Make use of wrongly unused variables

This commit is contained in:
Ilya Fedin 2024-01-01 01:49:50 +04:00 committed by John Preston
parent 00e785a3af
commit 4b297bfa09
2 changed files with 2 additions and 2 deletions

View file

@ -208,7 +208,7 @@ TextWithEntities AboutWithEntities(
const auto used = (!user || isPremium || value.size() <= limit)
? value
: value.mid(0, limit) + "...";
auto result = TextWithEntities{ value };
auto result = TextWithEntities{ used };
TextUtilities::ParseEntities(result, flags);
if (stripExternal) {
StripExternalLinks(result);

View file

@ -613,7 +613,7 @@ void writeBackground(const Data::WallPaper &paper, const QImage &image) {
dst = dst.subspan(sizeof(qint32));
bytes::copy(dst, bytes::object_as_span(&height));
dst = dst.subspan(sizeof(qint32));
const auto src = bytes::make_span(image.constBits(), srcsize);
const auto src = bytes::make_span(copy.constBits(), srcsize);
if (srcsize == dstsize) {
bytes::copy(dst, src);
} else {