refactor: Un-singletonize Paths & Updates (#5092)

This commit is contained in:
pajlada
2024-01-16 21:56:43 +01:00
committed by GitHub
parent 7f935665f9
commit 718696db53
60 changed files with 237 additions and 165 deletions
+4 -4
View File
@@ -34,11 +34,11 @@ namespace chatterino {
using namespace literals;
void registerNmManifest(Paths &paths, const QString &manifestFilename,
void registerNmManifest(const Paths &paths, const QString &manifestFilename,
const QString &registryKeyName,
const QJsonDocument &document);
void registerNmHost(Paths &paths)
void registerNmHost(const Paths &paths)
{
if (paths.isPortable())
{
@@ -80,7 +80,7 @@ void registerNmHost(Paths &paths)
}
}
void registerNmManifest(Paths &paths, const QString &manifestFilename,
void registerNmManifest(const Paths &paths, const QString &manifestFilename,
const QString &registryKeyName,
const QJsonDocument &document)
{
@@ -99,7 +99,7 @@ void registerNmManifest(Paths &paths, const QString &manifestFilename,
#endif
}
std::string &getNmQueueName(Paths &paths)
std::string &getNmQueueName(const Paths &paths)
{
static std::string name =
"chatterino_gui" + paths.applicationFilePathHash.toStdString();