summaryrefslogtreecommitdiff
path: root/src/Tools/makemetapads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tools/makemetapads.cpp')
-rw-r--r--src/Tools/makemetapads.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/Tools/makemetapads.cpp b/src/Tools/makemetapads.cpp
index 75587a0..16dfba6 100644
--- a/src/Tools/makemetapads.cpp
+++ b/src/Tools/makemetapads.cpp
@@ -31,7 +31,7 @@ int main(int argc, char **argv)
QTextStream out(stdout);
out << "#include \"metapads.h\"" << endl
- << "#include \"object.h\"" << endl
+ << "#include \"item.h\"" << endl
<< "#include <gst/gst.h>" << endl
<< "#include <QVector>" << endl
<< endl
@@ -44,19 +44,19 @@ int main(int argc, char **argv)
<< "static void *createObject(int which, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new Object(*static_cast<const Object*>(t));" << endl
+ << " return new Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " const auto type = objectTypes.at(which);" << endl
- << " return new Object(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
+ << " return new Item(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
<< "}" << endl
<< endl
<< "static void *constructObject(int which, void *where, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new(where) Object(*static_cast<const Object*>(t));" << endl
+ << " return new(where) Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " const auto type = objectTypes.at(which);" << endl
- << " return new(where) Object(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
+ << " return new(where) Item(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
<< "}" << endl
<< endl;
@@ -83,19 +83,19 @@ int main(int argc, char **argv)
out << "static void *createObject" << i << "(const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new Object(*static_cast<const Object*>(t));" << endl
+ << " return new Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " const auto type = objectTypes.at(" << i << ");" << endl
- << " return new Object(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
+ << " return new Item(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
<< "}" << endl
<< endl
<< "static void *constructObject" << i << "(void *where, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new(where) Object(*static_cast<const Object*>(t));" << endl
+ << " return new(where) Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " const auto type = objectTypes.at(" << i << ");" << endl
- << " return new(where) Object(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
+ << " return new(where) Item(GST_OBJECT(g_object_newv(type, 0, Q_NULLPTR)));" << endl
<< "}" << endl
<< endl;
}
@@ -127,21 +127,21 @@ int main(int argc, char **argv)
out << "static void *createElement(int which, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new Object(*static_cast<const Object*>(t));" << endl
+ << " return new Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " auto *const factory = elementFactories.at(which);" << endl
<< " auto *const element = gst_element_factory_create(factory, Q_NULLPTR);" << endl
- << " return new Object(GST_OBJECT(element));" << endl
+ << " return new Item(GST_OBJECT(element));" << endl
<< "}" << endl
<< endl
<< "static void *constructElement(int which, void *where, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new(where) Object(*static_cast<const Object*>(t));" << endl
+ << " return new(where) Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " auto *const factory = elementFactories.at(which);" << endl
<< " auto *const element = gst_element_factory_create(factory, Q_NULLPTR);" << endl
- << " return new(where) Object(GST_OBJECT(element));" << endl
+ << " return new(where) Item(GST_OBJECT(element));" << endl
<< "}" << endl
<< endl;
@@ -168,21 +168,21 @@ int main(int argc, char **argv)
out << "static void *createElement" << i << "(const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new Object(*static_cast<const Object*>(t));" << endl
+ << " return new Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " auto *const factory = elementFactories.at(" << i << ");" << endl
<< " auto *const element = gst_element_factory_create(factory, Q_NULLPTR);" << endl
- << " return new Object(GST_OBJECT(element));" << endl
+ << " return new Item(GST_OBJECT(element));" << endl
<< "}" << endl
<< endl
<< "static void *constructElement" << i << "(void *where, const void *t) Q_DECL_NOEXCEPT" << endl
<< "{" << endl
<< " if (t)" << endl
- << " return new(where) Object(*static_cast<const Object*>(t));" << endl
+ << " return new(where) Item(*static_cast<const Item*>(t));" << endl
<< endl
<< " auto *const factory = elementFactories.at(" << i << ");" << endl
<< " auto *const element = gst_element_factory_create(factory, Q_NULLPTR);" << endl
- << " return new(where) Object(GST_OBJECT(element));" << endl
+ << " return new(where) Item(GST_OBJECT(element));" << endl
<< "}" << endl
<< endl;
}