mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix build on macOS.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user