diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Ice/optional/AllTests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Ice/optional/AllTests.cpp b/cpp/test/Ice/optional/AllTests.cpp index ecaa1d44d26..4332be765cf 100644 --- a/cpp/test/Ice/optional/AllTests.cpp +++ b/cpp/test/Ice/optional/AllTests.cpp @@ -1021,8 +1021,9 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) IceUtil::Optional<FixedStructSeq> p2 = initial->opFixedStructSeq(p1, p3); test(!p2 && !p3); - p1 = std::pair<const FixedStruct*, const FixedStruct*>(0, 0); - p2 = initial->opFixedStructSeq(p1, p3); + std::pair<const FixedStruct*, const FixedStruct*> p; + p.first = p.second = 0; + p2 = initial->opFixedStructSeq(p, p3); test(p2 && p3 && p2.get().empty() && p3.get().empty()); FixedStruct fss[10]; |