From d09d55951d1915b29df712b2013b3725df4595fb Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 9 Oct 2024 14:08:38 -0500 Subject: [PATCH] refactor --- repertory/repertory_test/src/file_manager_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repertory/repertory_test/src/file_manager_test.cpp b/repertory/repertory_test/src/file_manager_test.cpp index 5aaa0de1..a2d70dac 100644 --- a/repertory/repertory_test/src/file_manager_test.cpp +++ b/repertory/repertory_test/src/file_manager_test.cpp @@ -1324,17 +1324,17 @@ TEST(file_manager, #if defined(_WIN32) EXPECT_EQ(api_error::success, fm.open(non_writeable, {}, handle, f)); EXPECT_CALL(*non_writeable, get_open_data()) - .WillOnce([&handle]() -> std::map& { + .WillOnce([&handle]() -> std::map & { static std::map map; - map[handle]={}; + map[handle] = {}; return map; }); #else EXPECT_EQ(api_error::success, fm.open(non_writeable, O_RDWR, handle, f)); EXPECT_CALL(*non_writeable, get_open_data()) - .WillOnce([&handle]() -> std::map& { + .WillOnce([&handle]() -> std::map & { static std::map map; - map[handle]=O_RDWR; + map[handle] = O_RDWR; return map; }); #endif