1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

vcmi: modernize rest of lib

This commit is contained in:
Konstantin
2023-03-14 00:26:44 +03:00
parent 17520b70ce
commit 4c4498b22a
70 changed files with 1278 additions and 1463 deletions

View File

@ -198,7 +198,8 @@ template <class Handler> void createHandler(Handler *&handler, const std::string
void LibClasses::init(bool onlyEssential)
{
CStopWatch pomtime, totalTime;
CStopWatch pomtime;
CStopWatch totalTime;
modh->initializeConfig();
@ -293,7 +294,6 @@ void LibClasses::makeNull()
LibClasses::LibClasses()
{
IS_AI_ENABLED = false;
//init pointers to handlers
makeNull();
}
@ -327,7 +327,7 @@ std::shared_ptr<CContentHandler> LibClasses::getContent() const
void LibClasses::setContent(std::shared_ptr<CContentHandler> content)
{
modh->content = content;
modh->content = std::move(content);
}
VCMI_LIB_NAMESPACE_END