diff options
author | sfan5 <sfan5@live.de> | 2022-02-23 20:02:58 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-02-26 14:39:41 +0100 |
commit | 04bd253390cc6c67a555e4837e7e48d524fdf014 (patch) | |
tree | 5b253a7ab2799686da9bdc85083e264707d06b4d /src/util/metricsbackend.cpp | |
parent | 7db751df3bc4e3b3aff80cdacd2883f3a7a0940b (diff) | |
download | minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.gz minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.bz2 minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.zip |
Move the codebase to C++14
Diffstat (limited to 'src/util/metricsbackend.cpp')
-rw-r--r-- | src/util/metricsbackend.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/metricsbackend.cpp b/src/util/metricsbackend.cpp index 4454557a3..c3b7def62 100644 --- a/src/util/metricsbackend.cpp +++ b/src/util/metricsbackend.cpp @@ -99,8 +99,7 @@ class PrometheusMetricsBackend : public MetricsBackend { public: PrometheusMetricsBackend(const std::string &addr) : - MetricsBackend(), m_exposer(std::unique_ptr<prometheus::Exposer>( - new prometheus::Exposer(addr))), + MetricsBackend(), m_exposer(std::make_unique<prometheus::Exposer>(addr)), m_registry(std::make_shared<prometheus::Registry>()) { m_exposer->RegisterCollectable(m_registry); |