mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
COMMON: Make value parameter of fill a const reference.
This commit is contained in:
parent
61795739f8
commit
c2fd35c9ed
@ -100,7 +100,7 @@ char *fill(char *first, char *last, Value val) {
|
||||
* Sets all elements in the range [first, last) to val.
|
||||
*/
|
||||
template<class In, class Value>
|
||||
In fill(In first, In last, Value val) {
|
||||
In fill(In first, In last, const Value &val) {
|
||||
while (first != last)
|
||||
*first++ = val;
|
||||
return first;
|
||||
|
Loading…
x
Reference in New Issue
Block a user