Merge pull request #2342 from neheb/res
VImage: reserve vector before push_back loop
This commit is contained in:
commit
3732751bf9
@ -767,6 +767,7 @@ std::vector<VImage>
|
||||
VImage::bandsplit( VOption *options ) const
|
||||
{
|
||||
std::vector<VImage> b;
|
||||
b.reserve(bands());
|
||||
|
||||
for( int i = 0; i < bands(); i++ )
|
||||
b.push_back( extract_band( i ) );
|
||||
|
Loading…
Reference in New Issue
Block a user