[Libreoffice-commits] core.git: vcl/source
Noel Grandin
noelgrandin at gmail.com
Mon Apr 4 09:18:20 UTC 2016
vcl/source/outdev/rect.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 06c6832e5a5b58ee5143e67a2e0c9d837ab26110
Author: Noel Grandin <noelgrandin at 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 <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at 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 )
{
More information about the Libreoffice-commits
mailing list