mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)
|
const auto used = (!user || isPremium || value.size() <= limit)
|
||||||
? value
|
? value
|
||||||
: value.mid(0, limit) + "...";
|
: value.mid(0, limit) + "...";
|
||||||
auto result = TextWithEntities{ value };
|
auto result = TextWithEntities{ used };
|
||||||
TextUtilities::ParseEntities(result, flags);
|
TextUtilities::ParseEntities(result, flags);
|
||||||
if (stripExternal) {
|
if (stripExternal) {
|
||||||
StripExternalLinks(result);
|
StripExternalLinks(result);
|
||||||
|
|
|
@ -613,7 +613,7 @@ void writeBackground(const Data::WallPaper &paper, const QImage &image) {
|
||||||
dst = dst.subspan(sizeof(qint32));
|
dst = dst.subspan(sizeof(qint32));
|
||||||
bytes::copy(dst, bytes::object_as_span(&height));
|
bytes::copy(dst, bytes::object_as_span(&height));
|
||||||
dst = dst.subspan(sizeof(qint32));
|
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) {
|
if (srcsize == dstsize) {
|
||||||
bytes::copy(dst, src);
|
bytes::copy(dst, src);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue