From 90e278dfd721a4f91b9d240516d5d60eeaec6b93 Mon Sep 17 00:00:00 2001 From: Peguen <73380451+Peguen@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:06:26 +0100 Subject: [PATCH] Used correct namespace - linux build issues. --- ecal/core/src/config/ecal_path_processing.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ecal/core/src/config/ecal_path_processing.cpp b/ecal/core/src/config/ecal_path_processing.cpp index 000d6c1ded..250a45bc0e 100644 --- a/ecal/core/src/config/ecal_path_processing.cpp +++ b/ecal/core/src/config/ecal_path_processing.cpp @@ -149,7 +149,7 @@ namespace #elif defined(ECAL_OS_LINUX) // TODO PG: Check if we really want to give that back here - if (Util::dirExists(ECAL_LINUX_SYSTEM_PATH)) + if (eCAL::Util::dirExists(ECAL_LINUX_SYSTEM_PATH)) return ECAL_LINUX_SYSTEM_PATH; #endif /* ECAL_OS_LINUX */ @@ -297,11 +297,11 @@ namespace eCAL bool createEcalDirStructure(const std::string& path_) { - if (!Util::dirExistsOrCreate(path_)) return false; + if (!eCAL::Util::dirExistsOrCreate(path_)) return false; // create also logs directory const std::string log_path = buildPath(path_, ECAL_FOLDER_NAME_LOG); - return Util::dirExistsOrCreate(log_path); + return eCAL::Util::dirExistsOrCreate(log_path); } } // namespace Util @@ -342,7 +342,7 @@ namespace eCAL { if (!path.empty()) { - if (Util::dirExists(path)) + if (eCAL::Util::dirExists(path)) { return path; } @@ -374,7 +374,7 @@ namespace eCAL { const std::string cwd_directory_path = EcalUtils::Filesystem::CurrentWorkingDir(); - std::vector ecal_default_paths = Util::getEcalDefaultPaths(); + std::vector ecal_default_paths = eCAL::Util::getEcalDefaultPaths(); // insert cwd on 2nd position, so that ECAL_CONFIG_DIR dir has precedence ecal_default_paths.insert(ecal_default_paths.begin() + 1, cwd_directory_path);