mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
store Paths as a unique_ptr instead of a raw ptr
This commit is contained in:
parent
0dcd189331
commit
ff87089f0e
1 changed files with 2 additions and 2 deletions
|
@ -35,11 +35,11 @@ int main(int argc, char **argv)
|
||||||
QCoreApplication::setApplicationVersion(CHATTERINO_VERSION);
|
QCoreApplication::setApplicationVersion(CHATTERINO_VERSION);
|
||||||
QCoreApplication::setOrganizationDomain("chatterino.com");
|
QCoreApplication::setOrganizationDomain("chatterino.com");
|
||||||
|
|
||||||
Paths *paths{};
|
std::unique_ptr<Paths> paths;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
paths = new Paths;
|
paths = std::make_unique<Paths>();
|
||||||
}
|
}
|
||||||
catch (std::runtime_error &error)
|
catch (std::runtime_error &error)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue