mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Make use of wrongly unused variables
This commit is contained in:
parent
00e785a3af
commit
4b297bfa09
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue