From 81966e31f21a009cbae89dd3f774b3a410f201e4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 17 Feb 2010 00:39:46 +0000 Subject: Formatting whitespace. --- src/SVector.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/SVector.h') diff --git a/src/SVector.h b/src/SVector.h index 7b929190d..12a7d5d40 100644 --- a/src/SVector.h +++ b/src/SVector.h @@ -19,19 +19,19 @@ namespace Scintilla { */ class SVector { enum { allocSize = 4000 }; - + int *v; ///< The vector unsigned int size; ///< Number of elements allocated unsigned int len; ///< Number of elements used in vector - + /** Internally allocate more elements than the user wants * to avoid thrashing the memory allocator. */ void SizeTo(int newSize) { if (newSize < allocSize) newSize += allocSize; - else + else newSize = (newSize * 3) / 2; - int* newv = new int[newSize]; + int *newv = new int[newSize]; size = newSize; unsigned int i=0; for (; i 0) { SizeTo(other.Length()); - for (int i=0;i 0) { SizeTo(other.Length()); - for (int i=0;i