mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32: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()
|
CommandPtr makeCommandChangeDirectory()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandChangeDirectory>();
|
return std::make_shared<DB::CommandChangeDirectory>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,6 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandCopy()
|
CommandPtr makeCommandCopy()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandCopy>();
|
return std::make_shared<DB::CommandCopy>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandLink()
|
CommandPtr makeCommandLink()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandLink>();
|
return std::make_shared<DB::CommandLink>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandMkDir()
|
CommandPtr makeCommandMkDir()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandMkDir>();
|
return std::make_shared<DB::CommandMkDir>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandMove()
|
CommandPtr makeCommandMove()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandMove>();
|
return std::make_shared<DB::CommandMove>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandRead()
|
CommandPtr makeCommandRead()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandRead>();
|
return std::make_shared<DB::CommandRead>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandRemove()
|
CommandPtr makeCommandRemove()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandRemove>();
|
return std::make_shared<DB::CommandRemove>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,6 @@ public:
|
|||||||
|
|
||||||
CommandPtr makeCommandSwitchDisk()
|
CommandPtr makeCommandSwitchDisk()
|
||||||
{
|
{
|
||||||
return std::make_unique<DB::CommandSwitchDisk>();
|
return std::make_shared<DB::CommandSwitchDisk>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user