diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-26 15:24:39 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-31 17:04:18 +0200 |
commit | c53f75542efbbe5e737744fe1104f7b8c56eb3b8 (patch) | |
tree | df98d7f1206b60623594a43e23794d05485f1203 /vsm/src/tests/document | |
parent | 5f54fb77ef1e354f9919e92da7b22cbe68ee7fbd (diff) |
Unify error handling to using exceptions only, not in combination with nullptr.
Diffstat (limited to 'vsm/src/tests/document')
-rw-r--r-- | vsm/src/tests/document/document.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vsm/src/tests/document/document.cpp b/vsm/src/tests/document/document.cpp index 599b761ea0b..d6e3f507034 100644 --- a/vsm/src/tests/document/document.cpp +++ b/vsm/src/tests/document/document.cpp @@ -34,9 +34,11 @@ DocumentTest::testStorageDocument() doc->setValue(fb, StringFieldValue("bar")); SharedFieldPathMap fpmap(new FieldPathMapT()); - fpmap->push_back(*dt.buildFieldPath("a")); - fpmap->push_back(*dt.buildFieldPath("b")); - fpmap->push_back(FieldPath()); + fpmap->emplace_back(); + dt.buildFieldPath(fpmap->back(),"a"); + fpmap->emplace_back(); + dt.buildFieldPath(fpmap->back(), "b"); + fpmap->emplace_back(); ASSERT_TRUE((*fpmap)[0].size() == 1); ASSERT_TRUE((*fpmap)[1].size() == 1); ASSERT_TRUE((*fpmap)[2].size() == 0); |