summaryrefslogtreecommitdiffstats
path: root/src/sound/LADSPAPluginFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/LADSPAPluginFactory.cpp')
-rw-r--r--src/sound/LADSPAPluginFactory.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/sound/LADSPAPluginFactory.cpp b/src/sound/LADSPAPluginFactory.cpp
index 5ec25ef..9daa431 100644
--- a/src/sound/LADSPAPluginFactory.cpp
+++ b/src/sound/LADSPAPluginFactory.cpp
@@ -81,7 +81,7 @@ LADSPAPluginFactory::enumeratePlugins(MappedObjectPropertyList &list)
list.push_back(*i);
list.push_back(descriptor->Name);
- list.push_back(TQString("%1").arg(descriptor->UniqueID));
+ list.push_back(TQString("%1").tqarg(descriptor->UniqueID));
list.push_back(descriptor->Label);
list.push_back(descriptor->Maker);
list.push_back(descriptor->Copyright);
@@ -104,7 +104,7 @@ LADSPAPluginFactory::enumeratePlugins(MappedObjectPropertyList &list)
}
- list.push_back(TQString("%1").arg(descriptor->PortCount));
+ list.push_back(TQString("%1").tqarg(descriptor->PortCount));
for (unsigned long p = 0; p < descriptor->PortCount; ++p) {
@@ -120,13 +120,13 @@ LADSPAPluginFactory::enumeratePlugins(MappedObjectPropertyList &list)
type |= PluginPort::Output;
}
- list.push_back(TQString("%1").arg(p));
+ list.push_back(TQString("%1").tqarg(p));
list.push_back(descriptor->PortNames[p]);
- list.push_back(TQString("%1").arg(type));
- list.push_back(TQString("%1").arg(getPortDisplayHint(descriptor, p)));
- list.push_back(TQString("%1").arg(getPortMinimum(descriptor, p)));
- list.push_back(TQString("%1").arg(getPortMaximum(descriptor, p)));
- list.push_back(TQString("%1").arg(getPortDefault(descriptor, p)));
+ list.push_back(TQString("%1").tqarg(type));
+ list.push_back(TQString("%1").tqarg(getPortDisplayHint(descriptor, p)));
+ list.push_back(TQString("%1").tqarg(getPortMinimum(descriptor, p)));
+ list.push_back(TQString("%1").tqarg(getPortMaximum(descriptor, p)));
+ list.push_back(TQString("%1").tqarg(getPortDefault(descriptor, p)));
}
}
@@ -507,7 +507,7 @@ LADSPAPluginFactory::getLADSPADescriptor(TQString identifier)
void
LADSPAPluginFactory::loadLibrary(TQString soName)
{
- void *libraryHandle = dlopen(soName.data(), RTLD_NOW);
+ void *libraryHandle = dlopen(soName.ascii(), RTLD_NOW);
if (libraryHandle)
m_libraryHandles[soName] = libraryHandle;
}
@@ -644,7 +644,7 @@ LADSPAPluginFactory::discoverPlugins()
for (size_t i = 0; i < lrdfPaths.size(); ++i) {
TQDir dir(lrdfPaths[i], "*.rdf;*.rdfs");
for (unsigned int j = 0; j < dir.count(); ++j) {
- if (!lrdf_read_file(TQString("file:" + lrdfPaths[i] + "/" + dir[j]).data())) {
+ if (!lrdf_read_file(TQString("file:" + lrdfPaths[i] + "/" + dir[j]).ascii())) {
// std::cerr << "LADSPAPluginFactory: read RDF file " << (lrdfPaths[i] + "/" + dir[j]) << std::endl;
haveSomething = true;
}
@@ -664,7 +664,7 @@ LADSPAPluginFactory::discoverPlugins()
TQDir pluginDir(*i, "*.so");
for (unsigned int j = 0; j < pluginDir.count(); ++j) {
- discoverPlugins(TQString("%1/%2").arg(*i).arg(pluginDir[j]));
+ discoverPlugins(TQString("%1/%2").tqarg(*i).tqarg(pluginDir[j]));
}
}
@@ -680,7 +680,7 @@ LADSPAPluginFactory::discoverPlugins()
void
LADSPAPluginFactory::discoverPlugins(TQString soName)
{
- void *libraryHandle = dlopen(soName.data(), RTLD_LAZY);
+ void *libraryHandle = dlopen(soName.ascii(), RTLD_LAZY);
if (!libraryHandle) {
std::cerr << "WARNING: LADSPAPluginFactory::discoverPlugins: couldn't dlopen "
@@ -770,9 +770,9 @@ LADSPAPluginFactory::generateFallbackCategories()
std::vector<TQString> path;
for (size_t i = 0; i < pluginPath.size(); ++i) {
- if (pluginPath[i].contains("/lib/")) {
+ if (pluginPath[i].tqcontains("/lib/")) {
TQString p(pluginPath[i]);
- p.replace("/lib/", "/share/");
+ p.tqreplace("/lib/", "/share/");
path.push_back(p);
// std::cerr << "LADSPAPluginFactory::generateFallbackCategories: path element " << p << std::endl;
}
@@ -813,7 +813,7 @@ void
LADSPAPluginFactory::generateTaxonomy(TQString uri, TQString base)
{
#ifdef HAVE_LIBLRDF
- lrdf_uris *uris = lrdf_get_instances(uri.data());
+ lrdf_uris *uris = lrdf_get_instances(uri.ascii());
if (uris != NULL) {
for (int i = 0; i < uris->count; ++i) {
@@ -822,7 +822,7 @@ LADSPAPluginFactory::generateTaxonomy(TQString uri, TQString base)
lrdf_free_uris(uris);
}
- uris = lrdf_get_subclasses(uri.data());
+ uris = lrdf_get_subclasses(uri.ascii());
if (uris != NULL) {
for (int i = 0; i < uris->count; ++i) {