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:
Pierre Moreau 2020-05-07 10:38:48 +02:00 committed by Marge Bot
parent 15a27ed73b
commit 8635c28a92
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -266,7 +266,7 @@ namespace clover {
S
operator()(S &&it) const {
std::advance(it, n);
return it;
return std::forward<S>(it);
}
private: