From 24be3228d463d6b2501cbca9368e14e91ab42182 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 6 Feb 2007 16:03:52 +0000 Subject: Tutorial (JPEG) and some formatting cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@924 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/FixVec.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/FixVec.h') diff --git a/crawl-ref/source/FixVec.h b/crawl-ref/source/FixVec.h index 176ced5cf4..0086750ae3 100644 --- a/crawl-ref/source/FixVec.h +++ b/crawl-ref/source/FixVec.h @@ -22,7 +22,8 @@ // class FixedVector // ========================================================================== -template class FixedVector { +template class FixedVector +{ //----------------------------------- // Types @@ -48,7 +49,8 @@ public: FixedVector() {} - FixedVector(TYPE def) : mData() { + FixedVector(TYPE def) : mData() + { init(def); } @@ -112,10 +114,10 @@ FixedVector::FixedVector(TYPE value0, TYPE value1, ...) va_list ap; va_start(ap, value1); // second argument is last fixed parameter - for (int index = 2; index < SIZE; index++) { - TYPE value = va_arg(ap, TYPE); - - mData[index] = value; + for (int index = 2; index < SIZE; index++) + { + TYPE value = va_arg(ap, TYPE); + mData[index] = value; } va_end(ap); -- cgit v1.2.3-54-g00ecf