diff options
Diffstat (limited to 'src/sound/AlsaDriver.cpp')
| -rw-r--r-- | src/sound/AlsaDriver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sound/AlsaDriver.cpp b/src/sound/AlsaDriver.cpp index f49e4a5..f486ac7 100644 --- a/src/sound/AlsaDriver.cpp +++ b/src/sound/AlsaDriver.cpp @@ -1154,7 +1154,7 @@ AlsaDriver::renameDevice(DeviceId id, TQString name) snd_seq_get_port_info(m_midiHandle, i->second, pinfo); TQString oldName = snd_seq_port_info_get_name(pinfo); - int sep = oldName.tqfind(" - "); + int sep = oldName.find(" - "); TQString newName; @@ -1383,20 +1383,20 @@ AlsaDriver::setPlausibleConnection(DeviceId id, TQString idealConnection) // of the requested string. int client = -1; - int colon = idealConnection.tqfind(":"); + int colon = idealConnection.find(":"); if (colon >= 0) client = idealConnection.left(colon).toInt(); int portNo = -1; if (client > 0) { TQString remainder = idealConnection.mid(colon + 1); - int space = remainder.tqfind(" "); + int space = remainder.find(" "); if (space >= 0) portNo = remainder.left(space).toInt(); } - int firstSpace = idealConnection.tqfind(" "); - int endOfText = idealConnection.tqfind(TQRegExp("[^\\w ]"), firstSpace); + int firstSpace = idealConnection.find(" "); + int endOfText = idealConnection.find(TQRegExp("[^\\w ]"), firstSpace); TQString text; if (endOfText < 2) { @@ -1448,7 +1448,7 @@ AlsaDriver::setPlausibleConnection(DeviceId id, TQString idealConnection) } if (testName && text != "" && - !TQString(port->m_name.c_str()).tqcontains(text)) + !TQString(port->m_name.c_str()).contains(text)) continue; if (testUsed) { |
