From ff87089f0e9bb5937319f0e5a69abc96799bb5b1 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Mon, 15 Jan 2024 22:51:35 +0100 Subject: [PATCH] store Paths as a unique_ptr instead of a raw ptr --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bbd955814..f48034647 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,11 +35,11 @@ int main(int argc, char **argv) QCoreApplication::setApplicationVersion(CHATTERINO_VERSION); QCoreApplication::setOrganizationDomain("chatterino.com"); - Paths *paths{}; + std::unique_ptr paths; try { - paths = new Paths; + paths = std::make_unique(); } catch (std::runtime_error &error) {