mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-27 13:55:19 +01:00
Use unique_ptr for trivial ownership (#16300)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include "settings.h"
|
||||
|
||||
@@ -57,6 +58,6 @@ private:
|
||||
std::string m_map_meta_path;
|
||||
|
||||
SettingsHierarchy m_hierarchy;
|
||||
Settings *m_defaults;
|
||||
Settings *m_map_settings;
|
||||
std::unique_ptr<Settings> m_defaults;
|
||||
std::unique_ptr<Settings> m_map_settings;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user