Skip to content

Commit 86abb35

Browse files
mkrzewicdberzano
authored andcommitted
Unique_ptr needs to be used here now.
This is under protest - getDevice should NOT return a raw pointer to be adopted by a unique_ptr somewhere arbitrary. Best option is possibly to return by unique_ptr.
1 parent d2587ed commit 86abb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/O2SimDeviceRunner.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int initAndRunDevice(int argc, char* argv[])
7575
});
7676

7777
runner.AddHook<InstantiateDevice>([](DeviceRunner& r) {
78-
r.fDevice = std::shared_ptr<FairMQDevice>{ getDevice(r.fConfig) };
78+
r.fDevice = std::unique_ptr<FairMQDevice>{ getDevice(r.fConfig) };
7979
});
8080

8181
return runner.Run();

0 commit comments

Comments
 (0)