From ba7e500062148455cb0157a47d4859984eba49f5 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 18 Nov 2024 13:24:51 +0300 Subject: [PATCH] refactor: more of 24306 (GetPathArg in Dash-specific code) --- src/qt/bitcoin.cpp | 2 +- src/util/system.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index d550e13136..debab9e2a2 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -680,7 +680,7 @@ int GuiMain(int argc, char* argv[]) } // Validate/set custom css directory if (gArgs.IsArgSet("-custom-css-dir")) { - fs::path customDir = fs::PathFromString(gArgs.GetArg("-custom-css-dir", "")); + fs::path customDir = gArgs.GetPathArg("-custom-css-dir"); QString strCustomDir = GUIUtil::PathToQString(customDir); std::vector vecRequiredFiles = GUIUtil::listStyleSheets(); QString strFile; diff --git a/src/util/system.cpp b/src/util/system.cpp index 1125a5f563..a0261103c4 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -481,7 +481,7 @@ fs::path ArgsManager::GetBackupsDirPath() if (!IsArgSet("-walletbackupsdir")) return GetDataDirNet() / "backups"; - return fs::absolute(fs::PathFromString(GetArg("-walletbackupsdir", ""))); + return fs::absolute(GetPathArg("-walletbackupsdir")); } void ArgsManager::ClearPathCache()