mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-30 14:58:50 +00:00
Make cons_impl() work with EbmlUnicodeString & std::wstring
This commit is contained in:
parent
78fa9e04cf
commit
fc62801628
@ -88,7 +88,7 @@ typename boost::enable_if< std::is_base_of<EbmlUnicodeString, Tobject> >::type
|
|||||||
cons_impl(EbmlMaster *master,
|
cons_impl(EbmlMaster *master,
|
||||||
Tobject *object,
|
Tobject *object,
|
||||||
Tvalue const &value) {
|
Tvalue const &value) {
|
||||||
*static_cast<EbmlUnicodeString *>(object) = value;
|
*static_cast<EbmlUnicodeString *>(object) = std::wstring{value}.c_str();
|
||||||
master->PushElement(*object);
|
master->PushElement(*object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user