Make m_cached_blocks_path mutable. Make ArgsManager::GetBlocksDirPath() const.

This commit is contained in:
Kiminuo
2021-05-20 22:28:06 +02:00
parent be4171679b
commit 716de29dd8
2 changed files with 3 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ std::optional<unsigned int> ArgsManager::GetArgFlags(const std::string& name) co
return std::nullopt;
}
const fs::path& ArgsManager::GetBlocksDirPath()
const fs::path& ArgsManager::GetBlocksDirPath() const
{
LOCK(cs_args);
fs::path& path = m_cached_blocks_path;