Lines Matching refs:newsize
375 - int newsize = width*height;
377 + int newsize = w*h;
383 if (newsize != width_*height_) // different sizes, must reallocate
385 newdata = allocator_.allocate(typename Alloc::size_type(newsize));
386 - std::uninitialized_copy(data, data + newsize, newdata);
388 + std::uninitialized_copy(src_data, src_data + newsize, newdata);
395 - std::copy(data, data + newsize, newdata);
397 + std::copy(src_data, src_data + newsize, newdata);
411 else if(newsize > 0) // keep size, copy data
413 - std::copy(data, data + newsize, data_);
414 + std::copy(src_data, src_data + newsize, data_);