diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-01-22 23:40:41 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-01-22 23:40:41 -0800 |
| commit | 0682bb734d5f8667d5aa1a8c2448d69fc042c53f (patch) | |
| tree | b0ec950f6dd036fcca4343651a13398319b54694 /toolsrc/src/tests.plan.cpp | |
| parent | 77eae92e75c4b0d15c14c1f19c93fb41bc60f25e (diff) | |
| download | vcpkg-0682bb734d5f8667d5aa1a8c2448d69fc042c53f.tar.gz vcpkg-0682bb734d5f8667d5aa1a8c2448d69fc042c53f.zip | |
[vcpkg] Store Optional<&> instead of Optional<*>
Diffstat (limited to 'toolsrc/src/tests.plan.cpp')
| -rw-r--r-- | toolsrc/src/tests.plan.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toolsrc/src/tests.plan.cpp b/toolsrc/src/tests.plan.cpp index 593003b80..0916e66c8 100644 --- a/toolsrc/src/tests.plan.cpp +++ b/toolsrc/src/tests.plan.cpp @@ -41,8 +41,7 @@ namespace UnitTest1 Assert::AreEqual(plan.spec.triplet().to_string().c_str(), triplet.to_string().c_str()); - Assert::AreEqual(pkg_name.c_str(), - (*plan.any_paragraph.source_control_file.get())->core_paragraph->name.c_str()); + Assert::AreEqual(pkg_name.c_str(), plan.any_paragraph.source_control_file.get()->core_paragraph->name.c_str()); Assert::AreEqual(size_t(vec.size()), feature_list.size()); for (auto&& feature_name : vec) |
