From dfa7b94e802b05bba4243381460eef96626102a0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 11 Nov 2023 01:31:58 +0100 Subject: Replace deprecated leaf() with filename(). --- src/lib/create_cli.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/create_cli.cc') diff --git a/src/lib/create_cli.cc b/src/lib/create_cli.cc index 6752be409..1c2f2c635 100644 --- a/src/lib/create_cli.cc +++ b/src/lib/create_cli.cc @@ -316,7 +316,7 @@ CreateCLI::CreateCLI (int argc, char* argv[]) } if (_name.empty()) { - _name = content[0].path.leaf().string(); + _name = content[0].path.filename().string(); } if (_j2k_bandwidth && (*_j2k_bandwidth < 10000000 || *_j2k_bandwidth > Config::instance()->maximum_j2k_bandwidth())) { -- cgit v1.2.3