From 4ff0a3ea3d7fe3d74877873d2c416e68061f2212 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 cb25dd3..3bf3442 100644 --- a/rosmon_core/src/main.cpp +++ b/rosmon_core/src/main.cpp @@ -45,7 +45,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; }