freebsd-ports/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
Pawel Pekala c499bf8ade - Update to version 1.2.2
- Tidy up dependencies
- Remove not needed boost patches
- Sort plist
2013-03-08 19:57:07 +00:00

20 lines
643 B
C++

--- ./src/mlib/filesystem.cpp.orig 2013-03-07 22:20:45.000000000 +0100
+++ src/mlib/filesystem.cpp 2013-03-08 16:42:27.000000000 +0100
@@ -105,7 +105,7 @@
std::string get_basename(const fs::path& pth)
{
- std::string name_s = pth.leaf();
+ std::string name_s = pth.filename().string();
const char* name = name_s.c_str();
//if( const char* dot = strstr(name, ".") )
@@ -116,7 +116,7 @@
std::string get_extension(const fs::path& pth)
{
- std::string name_s = pth.leaf();
+ std::string name_s = pth.filename().string();
if( const char* dot = FindExtDot(name_s.c_str()) )
return std::string(dot+1);