diff options
| author | 2015-12-03 11:40:45 +0100 | |
|---|---|---|
| committer | 2015-12-03 11:40:45 +0100 | |
| commit | 92f81361d64c720addf5d7e2528b3d1c675f65a4 (patch) | |
| tree | 6640e797a7dd924e20f10ab0f009257e1d751fc8 /src/emu/rendlay.cpp | |
| parent | 39afa0533a1349566aa7f144e042b24227285e9f (diff) | |
Initial conversion of core to C++14. Note that compilers are now limited to GCC 4.9.0 and up, Clang 3.4.0 and up, and VS2013 and up [Miodrag Milanovic]
Diffstat (limited to 'src/emu/rendlay.cpp')
| -rw-r--r-- | src/emu/rendlay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp index 9f53cf86255..7e90ed81d44 100644 --- a/src/emu/rendlay.cpp +++ b/src/emu/rendlay.cpp @@ -589,7 +589,7 @@ layout_element::component::component(running_machine &machine, xml_data_node &co m_dirname = dirname; m_imagefile[0] = xml_get_attribute_string_with_subst(machine, compnode, "file", ""); m_alphafile[0] = xml_get_attribute_string_with_subst(machine, compnode, "alphafile", ""); - m_file[0].reset(global_alloc(emu_file(machine.options().art_path(), OPEN_FLAG_READ))); + m_file[0] = std::make_unique<emu_file>(machine.options().art_path(), OPEN_FLAG_READ); } // text nodes @@ -657,7 +657,7 @@ layout_element::component::component(running_machine &machine, xml_data_node &co m_imagefile[i] = m_imagefile[i].substr(location+1, m_imagefile[i].length()-(location-1)); //m_alphafile[i] = - m_file[i].reset(global_alloc(emu_file(machine.options().art_path(), OPEN_FLAG_READ))); + m_file[i] = std::make_unique<emu_file>(machine.options().art_path(), OPEN_FLAG_READ); } else { |
