mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
clover: Address unnecessary copy warnings
Signed-off-by: Pierre Moreau <dev@pmoreau.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4943>
This commit is contained in:
parent
15a27ed73b
commit
8635c28a92
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ namespace clover {
|
|||
template<typename E> void
|
||||
fail(std::string &r_log, E &&e, const std::string &s) {
|
||||
r_log += s;
|
||||
throw e;
|
||||
throw std::forward<E>(e);
|
||||
}
|
||||
|
||||
inline std::vector<std::string>
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ namespace clover {
|
|||
S
|
||||
operator()(S &&it) const {
|
||||
std::advance(it, n);
|
||||
return it;
|
||||
return std::forward<S>(it);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue