projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace deprecated leaf() with filename().
[dcpomatic.git]
/
src
/
lib
/
util.cc
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index e0b5a294fe655dcb042a9014562ce8c26be4f114..71aee88fea6330f4187103bae99c7c88370cb652 100644
(file)
--- 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)
{
bool
valid_image_file (boost::filesystem::path f)
{
- if (boost::starts_with
(f.leaf
().string(), "._")) {
+ if (boost::starts_with
(f.filename
().string(), "._")) {
return false;
}
return false;
}
@@
-690,7
+690,7
@@
valid_image_file (boost::filesystem::path f)
bool
valid_sound_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;
}
return false;
}