summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/barcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/barcode.c')
-rw-r--r--src/emu/ui/barcode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/ui/barcode.c b/src/emu/ui/barcode.c
index ee556b305f2..ef26c6244a4 100644
--- a/src/emu/ui/barcode.c
+++ b/src/emu/ui/barcode.c
@@ -52,7 +52,7 @@ void ui_menu_barcode_reader::populate()
{
if (current_device())
{
- astring buffer;
+ std::string buffer;
const char *new_barcode;
// selected device
@@ -61,7 +61,7 @@ void ui_menu_barcode_reader::populate()
// append the "New Barcode" item
if (get_selection() == ITEMREF_NEW_BARCODE)
{
- buffer.cat(m_barcode_buffer);
+ buffer.append(m_barcode_buffer);
new_barcode = buffer.c_str();
}
else
@@ -112,13 +112,13 @@ void ui_menu_barcode_reader::handle()
case IPT_UI_SELECT:
if (event->itemref == ITEMREF_ENTER_BARCODE)
{
- astring tmp_file(m_barcode_buffer);
+ std::string tmp_file(m_barcode_buffer);
//printf("code %s\n", m_barcode_buffer);
- if (!current_device()->is_valid(tmp_file.len()))
+ if (!current_device()->is_valid(tmp_file.length()))
machine().ui().popup_time(5, "Barcode length invalid!");
else
{
- current_device()->write_code(tmp_file.c_str(), tmp_file.len());
+ current_device()->write_code(tmp_file.c_str(), tmp_file.length());
// if sending was successful, reset char buffer
if (m_barcode_buffer[0] != '\0')
memset(m_barcode_buffer, '\0', ARRAY_LENGTH(m_barcode_buffer));