refactor: simplify tr_sessionLoadSettings() args (#7935)

* refactor: remove unused appname arg from tr_sessionLoadSettings()

* refactor: swap order of arguments to tr_sessionLoadSettings()
  so way the optional arg can go at the end
This commit is contained in:
Charles Kerr
2025-12-15 13:44:38 -06:00
committed by GitHub
parent 109bc70511
commit fcd1e2ff8a
7 changed files with 14 additions and 17 deletions

View File

@@ -326,7 +326,7 @@ int tr_main(int argc, char* argv[])
/* load the defaults from config file + libtransmission defaults */
auto const config_dir = getConfigDir(argc, (char const**)argv);
auto settings = tr_sessionLoadSettings(nullptr, config_dir.c_str(), MyConfigName);
auto settings = tr_sessionLoadSettings(config_dir);
/* the command line overrides defaults */
if (parseCommandLine(&settings, argc, (char const**)argv) != 0)