We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58d23e commit f46a915Copy full SHA for f46a915
src/libstore/build/drv-output-substitution-goal.cc
@@ -36,14 +36,14 @@ Goal::Co DrvOutputSubstitutionGoal::init()
36
/* The callback of the curl download below can outlive `this` (if
37
some other error occurs), so it must not touch `this`. So put
38
the shared state in a separate refcounted object. */
39
- std::shared_ptr<MuxablePipe> outPipe;
+ auto outPipe = std::make_shared<MuxablePipe>();
40
#ifndef _WIN32
41
outPipe->create();
42
#else
43
outPipe->createAsyncPipe(worker.ioport.get());
44
#endif
45
46
- std::shared_ptr<std::promise<std::shared_ptr<const Realisation>>> promise;
+ auto promise = std::make_shared<std::promise<std::shared_ptr<const Realisation>>>();
47
48
sub->queryRealisation(
49
id,
0 commit comments