mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Move the codebase to C++14
This commit is contained in:
parent
7db751df3b
commit
04bd253390
9 changed files with 13 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue