mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
vcmi: modernize lua
This commit is contained in:
@ -28,12 +28,12 @@ Registry * Registry::get()
|
||||
|
||||
void Registry::add(const std::string & name, std::shared_ptr<Registar> item)
|
||||
{
|
||||
data[name] = item;
|
||||
data[name] = std::move(item);
|
||||
}
|
||||
|
||||
void Registry::addCore(const std::string & name, std::shared_ptr<Registar> item)
|
||||
{
|
||||
coreData[name] = item;
|
||||
coreData[name] = std::move(item);
|
||||
}
|
||||
|
||||
const Registar * Registry::find(const std::string & name) const
|
||||
|
Reference in New Issue
Block a user