From b47fd3f67145a90689cd3367c99b9512704319f4 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sun, 28 Jun 2015 17:02:20 +0200 Subject: [PATCH] Use optional::value() instead of optional::get() --- test/CryFsTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CryFsTest.cpp b/test/CryFsTest.cpp index 547607ad..e6bfa12f 100644 --- a/test/CryFsTest.cpp +++ b/test/CryFsTest.cpp @@ -31,7 +31,7 @@ TEST_F(CryFsTest, CreatedRootdirIsLoadableAfterClosing) { { CryDevice dev(CryConfigLoader::createNewWithWeakKey(config.path()), make_unique(rootdir.path())); } - CryDevice dev(std::move(CryConfigLoader::loadExisting(config.path()).get()), make_unique(rootdir.path())); + CryDevice dev(CryConfigLoader::loadExisting(config.path()).value(), make_unique(rootdir.path())); auto root = dev.Load(bf::path("/")); dynamic_pointer_move(root.get()).get()->children(); } @@ -40,7 +40,7 @@ TEST_F(CryFsTest, UsingStrongKey1_CreatedRootdirIsLoadableAfterClosing) { { CryDevice dev(CryConfigLoader::createNew(config.path()), make_unique(rootdir.path())); } - CryDevice dev(std::move(CryConfigLoader::loadExisting(config.path()).get()), make_unique(rootdir.path())); + CryDevice dev(CryConfigLoader::loadExisting(config.path()).value(), make_unique(rootdir.path())); auto root = dev.Load(bf::path("/")); dynamic_pointer_move(root.get()).get()->children(); }