mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on macOS.
This commit is contained in:
parent
dd68c7e90d
commit
ae3fae44b2
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ TextWithEntities StripSupportHashtag(TextWithEntities &&text) {
|
||||||
QRegularExpression::CaseInsensitiveOption);
|
QRegularExpression::CaseInsensitiveOption);
|
||||||
const auto match = expression.match(text.text);
|
const auto match = expression.match(text.text);
|
||||||
if (!match.hasMatch()) {
|
if (!match.hasMatch()) {
|
||||||
return text;
|
return std::move(text);
|
||||||
}
|
}
|
||||||
text.text.chop(match.capturedLength());
|
text.text.chop(match.capturedLength());
|
||||||
const auto length = text.text.size();
|
const auto length = text.text.size();
|
||||||
|
@ -199,7 +199,7 @@ TextWithEntities StripSupportHashtag(TextWithEntities &&text) {
|
||||||
if (!text.text.isEmpty() && !text.text.endsWith('\n')) {
|
if (!text.text.isEmpty() && !text.text.endsWith('\n')) {
|
||||||
text.text.append('\n');
|
text.text.append('\n');
|
||||||
}
|
}
|
||||||
return text;
|
return std::move(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue