vcl/source/outdev/rect.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 06c6832e5a5b58ee5143e67a2e0c9d837ab26110 Author: Noel Grandin <noelgran...@gmail.com> Date: Sun Apr 3 17:44:48 2016 +0200 sequence->vector in vcl Change-Id: I0ef3f4dd249c5d8587d9e960f9d2f95afd9076f8 Reviewed-on: https://gerrit.libreoffice.org/23762 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noelgran...@gmail.com> diff --git a/vcl/source/outdev/rect.cxx b/vcl/source/outdev/rect.cxx index 056eb44..32b23de 100644 --- a/vcl/source/outdev/rect.cxx +++ b/vcl/source/outdev/rect.cxx @@ -257,12 +257,12 @@ void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, DrawGrid long nHorzCount = 0L; long nVertCount = 0L; - css::uno::Sequence< sal_Int32 > aVertBuf; - css::uno::Sequence< sal_Int32 > aHorzBuf; + std::vector< sal_Int32 > aVertBuf; + std::vector< sal_Int32 > aHorzBuf; if( ( nFlags & DrawGridFlags::Dots ) || ( nFlags & DrawGridFlags::HorzLines ) ) { - aVertBuf.realloc( aDstRect.GetHeight() / nDistY + 2L ); + aVertBuf.resize( aDstRect.GetHeight() / nDistY + 2L ); aVertBuf[ nVertCount++ ] = nStartY; while( ( nY += nDistY ) <= nBottom ) { @@ -272,7 +272,7 @@ void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, DrawGrid if( ( nFlags & DrawGridFlags::Dots ) || ( nFlags & DrawGridFlags::VertLines ) ) { - aHorzBuf.realloc( aDstRect.GetWidth() / nDistX + 2L ); + aHorzBuf.resize( aDstRect.GetWidth() / nDistX + 2L ); aHorzBuf[ nHorzCount++ ] = nStartX; while( ( nX += nDistX ) <= nRight ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits