Skip to content

Commit 41408a8

Browse files
committed
avoid unnecessary c_str() calls
1 parent ec2645c commit 41408a8

57 files changed

Lines changed: 72 additions & 72 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/devices/bus/a2bus/a2corvus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ a2bus_corvus_device::a2bus_corvus_device(const machine_config &mconfig, const ch
111111

112112
void a2bus_corvus_device::device_start()
113113
{
114-
m_rom = device().machine().root_device().memregion(this->subtag(CORVUS_ROM_REGION).c_str())->base();
114+
m_rom = device().machine().root_device().memregion(this->subtag(CORVUS_ROM_REGION))->base();
115115
}
116116

117117
void a2bus_corvus_device::device_reset()

src/devices/bus/a2bus/a2diskiing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ a2bus_agat9flop_device::a2bus_agat9flop_device(const machine_config &mconfig, co
174174

175175
void diskiing_device::device_start()
176176
{
177-
m_rom = device().machine().root_device().memregion(this->subtag(DISKII_ROM_REGION).c_str())->base();
177+
m_rom = device().machine().root_device().memregion(this->subtag(DISKII_ROM_REGION))->base();
178178
}
179179

180180
void diskiing_device::device_reset()

src/devices/bus/a2bus/a2iwm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void a2bus_iwm_device::device_start()
8888
void a2bus_iwm_card_device::device_start()
8989
{
9090
a2bus_iwm_device::device_start();
91-
m_rom = device().machine().root_device().memregion(this->subtag(DISKII_ROM_REGION).c_str())->base();
91+
m_rom = device().machine().root_device().memregion(this->subtag(DISKII_ROM_REGION))->base();
9292
}
9393

9494
void a2bus_iwm_device::device_reset()

src/devices/bus/a2bus/agat840k_hle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void a2bus_agat840k_hle_device::index_callback(int unit, int state)
135135

136136
void a2bus_agat840k_hle_device::device_start()
137137
{
138-
m_rom = device().machine().root_device().memregion(this->subtag(AGAT840K_ROM_REGION).c_str())->base();
138+
m_rom = device().machine().root_device().memregion(this->subtag(AGAT840K_ROM_REGION))->base();
139139

140140
m_mxcs = MXCSR_SYNC;
141141

src/devices/bus/a2bus/agat_fdc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ void a2bus_agat_fdc_device::device_start()
132132
{
133133
set_unscaled_clock((XTAL(14'300'000) / 14.0) * 4.0);
134134

135-
m_rom = device().machine().root_device().memregion(this->subtag(AGAT_FDC_ROM_REGION).c_str())->base();
136-
m_rom_d6 = device().machine().root_device().memregion(this->subtag(AGAT_FDC_ROM_D6_REGION).c_str())->base();
135+
m_rom = device().machine().root_device().memregion(this->subtag(AGAT_FDC_ROM_REGION))->base();
136+
m_rom_d6 = device().machine().root_device().memregion(this->subtag(AGAT_FDC_ROM_D6_REGION))->base();
137137

138138
floppy = nullptr;
139139
if (floppy0)

src/devices/bus/a2bus/corvfdc01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ a2bus_corvfdc01_device::a2bus_corvfdc01_device(const machine_config &mconfig, co
126126

127127
void a2bus_corvfdc01_device::device_start()
128128
{
129-
m_rom = device().machine().root_device().memregion(this->subtag(FDC01_ROM_REGION).c_str())->base();
129+
m_rom = device().machine().root_device().memregion(this->subtag(FDC01_ROM_REGION))->base();
130130

131131
save_item(NAME(m_fdc_local_status));
132132
save_item(NAME(m_fdc_local_command));

src/devices/bus/a2bus/corvfdc02.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ a2bus_corvfdc02_device::a2bus_corvfdc02_device(const machine_config &mconfig, co
9999

100100
void a2bus_corvfdc02_device::device_start()
101101
{
102-
m_rom = device().machine().root_device().memregion(this->subtag(FDC02_ROM_REGION).c_str())->base();
102+
m_rom = device().machine().root_device().memregion(this->subtag(FDC02_ROM_REGION))->base();
103103

104104
m_timer = timer_alloc(FUNC(a2bus_corvfdc02_device::tc_tick), this);
105105

src/devices/bus/hp_dio/hp98603a.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void dio16_98603a_device::device_start()
8888

8989
void dio16_98603a_device::device_reset()
9090
{
91-
m_rom = device().machine().root_device().memregion(this->subtag(HP98603A_ROM_REGION).c_str())->base();
91+
m_rom = device().machine().root_device().memregion(this->subtag(HP98603A_ROM_REGION))->base();
9292
dio().install_memory(0x80000, 0xfffff,
9393
read16sm_delegate(*this, FUNC(dio16_98603a_device::rom_r)),
9494
write16sm_delegate(*this, FUNC(dio16_98603a_device::rom_w)));

src/devices/bus/hp_dio/hp98603b.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void dio16_98603b_device::device_start()
8383

8484
void dio16_98603b_device::device_reset()
8585
{
86-
m_rom = device().machine().root_device().memregion(this->subtag(HP98603B_ROM_REGION).c_str())->base();
86+
m_rom = device().machine().root_device().memregion(this->subtag(HP98603B_ROM_REGION))->base();
8787
dio().install_memory(0x100000, 0x1fffff,
8888
read16sm_delegate(*this, FUNC(dio16_98603b_device::rom_r)),
8989
write16sm_delegate(*this, FUNC(dio16_98603b_device::rom_w)));

src/devices/bus/intv/ecs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void intv_ecs_device::device_start()
4949
if (m_rom == nullptr)
5050
{
5151
std::string region_tag;
52-
m_rom = memregion(region_tag.assign(tag()).append(":ecs").c_str())->base();
52+
m_rom = memregion(region_tag.assign(tag()).append(":ecs"))->base();
5353
}
5454
if (m_ram.empty())
5555
{

0 commit comments

Comments
 (0)