Change unique_ptr creation to shared_ptr

This commit is contained in:
divanik 2024-07-01 17:35:07 +00:00
parent ad3170acca
commit 242b553253
8 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ public:
CommandPtr makeCommandChangeDirectory()
{
return std::make_unique<DB::CommandChangeDirectory>();
return std::make_shared<DB::CommandChangeDirectory>();
}
}

View File

@ -94,6 +94,6 @@ public:
CommandPtr makeCommandCopy()
{
return std::make_unique<DB::CommandCopy>();
return std::make_shared<DB::CommandCopy>();
}
}

View File

@ -31,7 +31,7 @@ public:
CommandPtr makeCommandLink()
{
return std::make_unique<DB::CommandLink>();
return std::make_shared<DB::CommandLink>();
}
}

View File

@ -34,7 +34,7 @@ public:
CommandPtr makeCommandMkDir()
{
return std::make_unique<DB::CommandMkDir>();
return std::make_shared<DB::CommandMkDir>();
}
}

View File

@ -72,7 +72,7 @@ public:
CommandPtr makeCommandMove()
{
return std::make_unique<DB::CommandMove>();
return std::make_shared<DB::CommandMove>();
}
}

View File

@ -46,7 +46,7 @@ public:
CommandPtr makeCommandRead()
{
return std::make_unique<DB::CommandRead>();
return std::make_shared<DB::CommandRead>();
}
}

View File

@ -52,7 +52,7 @@ public:
CommandPtr makeCommandRemove()
{
return std::make_unique<DB::CommandRemove>();
return std::make_shared<DB::CommandRemove>();
}
}

View File

@ -30,6 +30,6 @@ public:
CommandPtr makeCommandSwitchDisk()
{
return std::make_unique<DB::CommandSwitchDisk>();
return std::make_shared<DB::CommandSwitchDisk>();
}
}