summaryrefslogtreecommitdiffstats
path: root/src/sound
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/AlsaDriver.cpp12
-rw-r--r--src/sound/LADSPAPluginFactory.cpp4
-rw-r--r--src/sound/MidiFile.cpp2
3 files changed, 9 insertions, 9 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) {
diff --git a/src/sound/LADSPAPluginFactory.cpp b/src/sound/LADSPAPluginFactory.cpp
index 9daa431..204f05e 100644
--- a/src/sound/LADSPAPluginFactory.cpp
+++ b/src/sound/LADSPAPluginFactory.cpp
@@ -770,9 +770,9 @@ LADSPAPluginFactory::generateFallbackCategories()
std::vector<TQString> path;
for (size_t i = 0; i < pluginPath.size(); ++i) {
- if (pluginPath[i].tqcontains("/lib/")) {
+ if (pluginPath[i].contains("/lib/")) {
TQString p(pluginPath[i]);
- p.tqreplace("/lib/", "/share/");
+ p.replace("/lib/", "/share/");
path.push_back(p);
// std::cerr << "LADSPAPluginFactory::generateFallbackCategories: path element " << p << std::endl;
}
diff --git a/src/sound/MidiFile.cpp b/src/sound/MidiFile.cpp
index 4e97455..509b3d3 100644
--- a/src/sound/MidiFile.cpp
+++ b/src/sound/MidiFile.cpp
@@ -503,7 +503,7 @@ MidiFile::parseTrack(ifstream* midiFile, TrackId &lastTrackNum)
unsigned long accumulatedTime = 0;
// The trackNum passed in to this method is the default track for
- // all events provided they're all on the same channel. If we tqfind
+ // all events provided they're all on the same channel. If we find
// events on more than one channel, we increment trackNum and record
// the mapping from channel to trackNum in this channelTrackMap.
// We then return the new trackNum by reference so the calling