Commit 5147d358 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

common: Simplify wrapCStr

parent a3763c0f
......@@ -55,7 +55,7 @@ namespace VLC
inline std::unique_ptr<char, void (*)(void*)> wrapCStr(char* str)
{
return std::unique_ptr<char, void(*)(void*)>( str, [](void* ptr) { libvlc_free(ptr); } );
return std::unique_ptr<char, decltype(&libvlc_free)>( str, &libvlc_free );
}
#if !defined(_MSC_VER)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment