summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-11 01:31:58 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-11 01:59:10 +0100
commit7ad9dd774ec811707fa0edaa3867f5caa3c7c6ca (patch)
tree2bd42c18b9b6c41db2c56c9dd81a3a16dd5fb805 /src/lib/util.cc
parentd69a032b00b90d72ac9a7c0bd5f591c91aa40a20 (diff)
Replace deprecated leaf() with filename().
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index e0b5a294f..71aee88fe 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -673,7 +673,7 @@ short_audio_channel_name (int c)
bool
valid_image_file (boost::filesystem::path f)
{
- if (boost::starts_with (f.leaf().string(), "._")) {
+ if (boost::starts_with(f.filename().string(), "._")) {
return false;
}
@@ -690,7 +690,7 @@ valid_image_file (boost::filesystem::path f)
bool
valid_sound_file (boost::filesystem::path f)
{
- if (boost::starts_with (f.leaf().string(), "._")) {
+ if (boost::starts_with(f.filename().string(), "._")) {
return false;
}