From 2dade726eb4ccaaeb96ba6e7ab288fa4421c130f Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Wed, 17 Apr 2024 07:56:11 -0700 Subject: [PATCH] replace deprecated leaf() with filename() --- rosmon_core/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosmon_core/src/main.cpp b/rosmon_core/src/main.cpp index d58894d..abbf461 100644 --- a/rosmon_core/src/main.cpp +++ b/rosmon_core/src/main.cpp @@ -44,7 +44,7 @@ static fs::path findFile(const fs::path& base, const std::string& name) if(!p.empty()) return p; } - else if(it->path().leaf() == name) + else if(it->path().filename() == name) return *it; }