summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/nes_pcb.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/nes_pcb.inc')
-rw-r--r--src/devices/bus/nes/nes_pcb.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/nes/nes_pcb.inc b/src/devices/bus/nes/nes_pcb.inc
index b7af5aeefd4..32fabbcbbf3 100644
--- a/src/devices/bus/nes/nes_pcb.inc
+++ b/src/devices/bus/nes/nes_pcb.inc
@@ -381,7 +381,7 @@ const char * nes_cart_slot_device::nes_get_slot( int pcb_id )
struct nes_cart_lines
{
- const char *tag;
+ std::string tag;
int line;
};
@@ -414,9 +414,9 @@ static int nes_cart_get_line( const char *feature )
if (feature == nullptr)
return 128;
- while (nes_line->tag)
+ while (!nes_line->tag.empty())
{
- if (strcmp(nes_line->tag, feature) == 0)
+ if (strcmp(nes_line->tag.c_str(), feature) == 0)
break;
nes_line++;