mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix GCC 15 -Wrange-loop-construct
This commit is contained in:
@@ -1741,7 +1741,7 @@ ShareBox::SubmitCallback ShareBox::DefaultForwardCallback(
|
||||
const auto showRecentForwardsToSelf = result.size() == 1
|
||||
&& result.front()->peer()->isSelf()
|
||||
&& history->session().premium();
|
||||
for (const auto thread : result) {
|
||||
for (const auto &thread : result) {
|
||||
const auto peer = thread->peer();
|
||||
const auto threadHistory = thread->owningHistory();
|
||||
const auto forum = threadHistory->asForum();
|
||||
@@ -2108,7 +2108,7 @@ void FastShareLink(
|
||||
comment.text = url;
|
||||
}
|
||||
auto &api = show->session().api();
|
||||
for (const auto thread : result) {
|
||||
for (const auto &thread : result) {
|
||||
auto message = Api::MessageToSend(
|
||||
Api::SendAction(thread, options));
|
||||
message.textWithTags = comment;
|
||||
|
||||
Reference in New Issue
Block a user