Kaydet (Commit) 22c0cdc0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705602 Big parameter passed by value

Change-Id: I4f96325d6387bf7e8859d09f1d5b41c605e8227d
üst b78b5b1d
...@@ -30,7 +30,7 @@ template< class DestIterator, class DestAccessor, typename T > ...@@ -30,7 +30,7 @@ template< class DestIterator, class DestAccessor, typename T >
void fillImage( DestIterator begin, void fillImage( DestIterator begin,
DestIterator end, DestIterator end,
DestAccessor ad, DestAccessor ad,
T fillVal ) const T& fillVal )
{ {
const int width ( end.x - begin.x ); const int width ( end.x - begin.x );
const int height( end.y - begin.y ); const int height( end.y - begin.y );
...@@ -51,7 +51,7 @@ void fillImage( DestIterator begin, ...@@ -51,7 +51,7 @@ void fillImage( DestIterator begin,
template< class DestIterator, class DestAccessor, typename T > template< class DestIterator, class DestAccessor, typename T >
inline void fillImage( vigra::triple<DestIterator,DestIterator,DestAccessor> const& src, inline void fillImage( vigra::triple<DestIterator,DestIterator,DestAccessor> const& src,
T fillVal ) const T& fillVal )
{ {
fillImage(src.first,src.second,src.third,fillVal); fillImage(src.first,src.second,src.third,fillVal);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment