summaryrefslogtreecommitdiffstats
path: root/include/basebmp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 14:10:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:43 +0000
commit22c0cdc0146598cad53180be9b5f9378d2bc1d0c (patch)
treea5809d70783264a27543517ab434aed718bc572b /include/basebmp
parentcoverity#705810 Dereference before null check (diff)
downloadcore-22c0cdc0146598cad53180be9b5f9378d2bc1d0c.tar.gz
core-22c0cdc0146598cad53180be9b5f9378d2bc1d0c.zip
coverity#705602 Big parameter passed by value
Change-Id: I4f96325d6387bf7e8859d09f1d5b41c605e8227d
Diffstat (limited to 'include/basebmp')
-rw-r--r--include/basebmp/fillimage.hxx4
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);
}