From: srowen Date: Mon, 6 Apr 2009 21:41:21 +0000 (+0000) Subject: Issue 163 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=c334031b22af85568eb79dc9902f3ce2b25023f9;hp=0aff68f41e16c13023a829d856cd3888ca1688b4;p=zxing.git Issue 163 git-svn-id: http://zxing.googlecode.com/svn/trunk@897 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/cpp/core/src/common/Array.h b/cpp/core/src/common/Array.h index e6d16306..40fb1047 100644 --- a/cpp/core/src/common/Array.h +++ b/cpp/core/src/common/Array.h @@ -37,7 +37,7 @@ namespace common { protected: public: valarray values_; - Array(size_t n) : Counted(), values_(n) { } + Array(size_t n) : Counted(), values_(T(), n) { } Array(T *ts, size_t n) : Counted(), values_(ts, n) { } Array(T v, size_t n) : Counted(), values_(v, n) { } Array(valarray &v) : Counted(), values_(v) { }