mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
[POCO::trunk] Remove warning issued by gcc 4.2.3
Details: Add necessary initializer braces to make gcc 4.2.4 happy. (ArrayTest.cpp)
This commit is contained in:
parent
e1dbbef72f
commit
6bf2319a9e
@ -71,7 +71,7 @@ void ArrayTest::testConstruction()
|
||||
|
||||
typedef Poco::Array<double,6> DArray;
|
||||
typedef Poco::Array<int,6> IArray;
|
||||
IArray ia = { 1, 2, 3, 4, 5, 6 };
|
||||
IArray ia = {{1, 2, 3, 4, 5, 6 }};
|
||||
DArray da;
|
||||
da = ia;
|
||||
da.assign(42);
|
||||
@ -130,7 +130,7 @@ void ArrayTest::testContainer()
|
||||
{
|
||||
const int SIZE = 2;
|
||||
typedef Poco::Array<int,SIZE> Array;
|
||||
Array a = { 1, 2 };
|
||||
Array a = {{1, 2}};
|
||||
assert(a[0] == 1);
|
||||
assert(a[1] == 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user