diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 14:10:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 14:30:43 +0000 |
commit | 22c0cdc0146598cad53180be9b5f9378d2bc1d0c (patch) | |
tree | a5809d70783264a27543517ab434aed718bc572b /include/basebmp/fillimage.hxx | |
parent | b78b5b1da560bf3a9332a3775d39276275d3709c (diff) |
coverity#705602 Big parameter passed by value
Change-Id: I4f96325d6387bf7e8859d09f1d5b41c605e8227d
Diffstat (limited to 'include/basebmp/fillimage.hxx')
-rw-r--r-- | include/basebmp/fillimage.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/basebmp/fillimage.hxx b/include/basebmp/fillimage.hxx index 815ec32539bf..a62ebf615801 100644 --- a/include/basebmp/fillimage.hxx +++ b/include/basebmp/fillimage.hxx @@ -30,7 +30,7 @@ template< class DestIterator, class DestAccessor, typename T > void fillImage( DestIterator begin, DestIterator end, DestAccessor ad, - T fillVal ) + const T& fillVal ) { const int width ( end.x - begin.x ); const int height( end.y - begin.y ); @@ -51,7 +51,7 @@ void fillImage( DestIterator begin, template< class DestIterator, class DestAccessor, typename T > inline void fillImage( vigra::triple<DestIterator,DestIterator,DestAccessor> const& src, - T fillVal ) + const T& fillVal ) { fillImage(src.first,src.second,src.third,fillVal); } |