mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Change unique_ptr creation to shared_ptr
This commit is contained in:
parent
ad3170acca
commit
242b553253
@ -29,7 +29,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandChangeDirectory()
|
||||
{
|
||||
return std::make_unique<DB::CommandChangeDirectory>();
|
||||
return std::make_shared<DB::CommandChangeDirectory>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -94,6 +94,6 @@ public:
|
||||
|
||||
CommandPtr makeCommandCopy()
|
||||
{
|
||||
return std::make_unique<DB::CommandCopy>();
|
||||
return std::make_shared<DB::CommandCopy>();
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandLink()
|
||||
{
|
||||
return std::make_unique<DB::CommandLink>();
|
||||
return std::make_shared<DB::CommandLink>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandMkDir()
|
||||
{
|
||||
return std::make_unique<DB::CommandMkDir>();
|
||||
return std::make_shared<DB::CommandMkDir>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandMove()
|
||||
{
|
||||
return std::make_unique<DB::CommandMove>();
|
||||
return std::make_shared<DB::CommandMove>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandRead()
|
||||
{
|
||||
return std::make_unique<DB::CommandRead>();
|
||||
return std::make_shared<DB::CommandRead>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
|
||||
CommandPtr makeCommandRemove()
|
||||
{
|
||||
return std::make_unique<DB::CommandRemove>();
|
||||
return std::make_shared<DB::CommandRemove>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,6 +30,6 @@ public:
|
||||
|
||||
CommandPtr makeCommandSwitchDisk()
|
||||
{
|
||||
return std::make_unique<DB::CommandSwitchDisk>();
|
||||
return std::make_shared<DB::CommandSwitchDisk>();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user