diff options
author | Johannes Schickel | 2011-11-16 18:16:40 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-11-16 18:16:40 +0100 |
commit | c2fd35c9ed32820f9bc616c0e9fd23075c845a2e (patch) | |
tree | f8015c70d116bc5ab6f3f617cc5a7189a0ebc564 /common | |
parent | 61795739f8f45c5de4cfd0fe57af459146c5173c (diff) | |
download | scummvm-rg350-c2fd35c9ed32820f9bc616c0e9fd23075c845a2e.tar.gz scummvm-rg350-c2fd35c9ed32820f9bc616c0e9fd23075c845a2e.tar.bz2 scummvm-rg350-c2fd35c9ed32820f9bc616c0e9fd23075c845a2e.zip |
COMMON: Make value parameter of fill a const reference.
Diffstat (limited to 'common')
-rw-r--r-- | common/algorithm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/algorithm.h b/common/algorithm.h index d6790afbe9..7a0eed89ce 100644 --- a/common/algorithm.h +++ b/common/algorithm.h @@ -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; |