Skip to content

Commit

Permalink
replace deprecated leaf() with filename()
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Apr 17, 2024
1 parent 571aa29 commit 2dade72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosmon_core/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2dade72

Please sign in to comment.