mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
modules: X-value copy elision hints for clang.
This commit is contained in:
parent
7669fd53d9
commit
c3f0803e49
8 changed files with 9 additions and 9 deletions
|
@ -366,7 +366,7 @@ ircd::m::homeserver::key::key(const struct opts &opts)
|
|||
key
|
||||
};
|
||||
|
||||
return ret;
|
||||
return std::move(ret);
|
||||
}()}
|
||||
{
|
||||
log::info
|
||||
|
|
|
@ -181,7 +181,7 @@ get__events(client &client,
|
|||
};
|
||||
|
||||
if(get_events_from(client, request, room_id, event_id, room_head, room_depth, top))
|
||||
return response;
|
||||
return std::move(response);
|
||||
|
||||
checkpoint.rollback();
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ get__events(client &client,
|
|||
top, "end", room_head
|
||||
};
|
||||
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -81,7 +81,7 @@ get__notifications(client &client,
|
|||
};
|
||||
|
||||
top.~object();
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
resource::method
|
||||
|
|
|
@ -101,7 +101,7 @@ get__relations(client &client,
|
|||
};
|
||||
|
||||
relations_chunk(client, request, room_id, event_id, rel_type, type, chunk);
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -81,7 +81,7 @@ post__search(client &client, const resource::request &request)
|
|||
};
|
||||
|
||||
handle_room_events(client, request, search_categories, result_categories);
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -127,7 +127,7 @@ get__backfill(client &client,
|
|||
pdus.append(event);
|
||||
}
|
||||
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
static size_t
|
||||
|
|
|
@ -135,7 +135,7 @@ get__backfill_ids(client &client,
|
|||
pdus.append(event_id);
|
||||
}
|
||||
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
m::resource::method
|
||||
|
|
|
@ -141,7 +141,7 @@ get__query_profile(client &client,
|
|||
return true;
|
||||
});
|
||||
|
||||
return response;
|
||||
return std::move(response);
|
||||
}
|
||||
|
||||
m::resource::response
|
||||
|
|
Loading…
Reference in a new issue