1
0
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:
Lucas OH
2025-07-03 17:32:46 +02:00
committed by GitHub
parent 08bc036311
commit 5b37614d23
10 changed files with 44 additions and 59 deletions

View File

@@ -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;
};