File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -291,11 +291,16 @@ namespace mamba
291
291
{
292
292
}
293
293
294
- const Context& m_context;
294
+ ConsoleData (const ConsoleData&) = delete ;
295
+ ConsoleData& operator =(const ConsoleData&) = delete ;
296
+
297
+ ConsoleData (ConsoleData&&) noexcept = delete ;
298
+ ConsoleData& operator =(ConsoleData&&) noexcept = delete ;
295
299
300
+ const Context& m_context;
296
301
297
302
std::string json_hier;
298
- unsigned int json_index;
303
+ unsigned int json_index = 0 ;
299
304
nlohmann::json json_log;
300
305
bool is_json_print_cancelled = false ;
301
306
@@ -306,7 +311,7 @@ namespace mamba
306
311
};
307
312
308
313
Console::Console (const Context& context)
309
- : p_data(new ConsoleData{ context } )
314
+ : p_data(std::make_unique< ConsoleData>( context) )
310
315
{
311
316
set_singleton (*this );
312
317
You can’t perform that action at this time.
0 commit comments