Avoid unnecessary move operation
Change-Id: I7fcdbb653b36cfd1bb2566bf59861867d368c9df
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/test/test.cpp b/test/test.cpp
index c5c8a1d..cc9c3ee 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -43,10 +43,10 @@
std::ofstream f{entry};
f << "1234";
- auto loop = MainLoop(
- sdbusplus::bus::new_default(),
- dir,
- "xyz.openbmc_project.Testing", "/testing");
+ MainLoop loop(
+ sdbusplus::bus::new_default(),
+ dir,
+ "xyz.openbmc_project.Testing", "/testing");
auto t = std::thread(server_thread, &loop);
runTests(loop);