summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/rect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-04-03 17:44:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-04 09:17:56 +0000
commit06c6832e5a5b58ee5143e67a2e0c9d837ab26110 (patch)
treeb40b808ff13cdec52fbb6b84d6f872fffa61ff59 /vcl/source/outdev/rect.cxx
parentf13e80b8a596ef3215a53cd39c9d0fac3e0375b7 (diff)
sequence->vector in vcl
Change-Id: I0ef3f4dd249c5d8587d9e960f9d2f95afd9076f8 Reviewed-on: https://gerrit.libreoffice.org/23762 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/outdev/rect.cxx')
-rw-r--r--vcl/source/outdev/rect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/rect.cxx b/vcl/source/outdev/rect.cxx
index 056eb443407a..32b23de83b8f 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 )
{