summaryrefslogtreecommitdiffstats
path: root/src/sound/MappedInstrument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/MappedInstrument.cpp')
-rw-r--r--src/sound/MappedInstrument.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound/MappedInstrument.cpp b/src/sound/MappedInstrument.cpp
index a3c366f..626fd35 100644
--- a/src/sound/MappedInstrument.cpp
+++ b/src/sound/MappedInstrument.cpp
@@ -90,7 +90,7 @@ operator>>(TQDataStream &dS, MappedInstrument *mI)
mI->setType(Instrument::InstrumentType(type));
mI->setChannel(MidiByte(channel));
mI->setId(InstrumentId(id));
- mI->setName(std::string(name.data()));
+ mI->setName(std::string(name.ascii()));
mI->setDevice(DeviceId(device));
mI->setAudioChannels(audioChannels);
@@ -113,7 +113,7 @@ operator>>(TQDataStream &dS, MappedInstrument &mI)
mI.setType(Instrument::InstrumentType(type));
mI.setChannel(MidiByte(channel));
mI.setId(InstrumentId(id));
- mI.setName(std::string(name.data()));
+ mI.setName(std::string(name.ascii()));
mI.setDevice(DeviceId(device));
mI.setAudioChannels(audioChannels);