@@ -36,15 +36,13 @@ using namespace fbcpp::impl;
3636
3737BatchCompletionState::BatchCompletionState (Client& client, FbUniquePtr<fb::IBatchCompletionState> handle) noexcept
3838 : client{&client},
39- status{client.newStatus ()},
40- statusWrapper{client, status.get ()},
39+ statusWrapper{client},
4140 handle{std::move (handle)}
4241{
4342}
4443
4544BatchCompletionState::BatchCompletionState (BatchCompletionState&& o) noexcept
4645 : client{o.client },
47- status{std::move (o.status )},
4846 statusWrapper{std::move (o.statusWrapper )},
4947 handle{std::move (o.handle )}
5048{
@@ -102,8 +100,7 @@ Batch::Batch(Statement& statement, Transaction& transaction, const BatchOptions&
102100 : client{&statement.getAttachment ().getClient ()},
103101 transaction{&transaction},
104102 statement{&statement},
105- status{client->newStatus ()},
106- statusWrapper{*client, status.get ()}
103+ statusWrapper{*client}
107104{
108105 assert (statement.isValid ());
109106 assert (transaction.isValid ());
@@ -118,8 +115,7 @@ Batch::Batch(Attachment& attachment, Transaction& transaction, std::string_view
118115 const BatchOptions& options)
119116 : client{&attachment.getClient ()},
120117 transaction{&transaction},
121- status{client->newStatus ()},
122- statusWrapper{*client, status.get ()}
118+ statusWrapper{*client}
123119{
124120 assert (attachment.isValid ());
125121 assert (transaction.isValid ());
@@ -135,7 +131,6 @@ Batch::Batch(Batch&& o) noexcept
135131 : client{o.client },
136132 transaction{o.transaction },
137133 statement{o.statement },
138- status{std::move (o.status )},
139134 statusWrapper{std::move (o.statusWrapper )},
140135 handle{std::move (o.handle )}
141136{
0 commit comments