summaryrefslogtreecommitdiff
path: root/src/QGst/ghostpad.cpp
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <kiagiadakis.george@gmail.com>2010-06-30 17:52:49 +0300
committerGeorge Kiagiadakis <kiagiadakis.george@gmail.com>2010-06-30 17:52:49 +0300
commit8d11fbd2e7c7139083892656eb3e6b3cf94d0bcb (patch)
treef80f2a11d61822c35d4bbb30a5d844ec3634404c /src/QGst/ghostpad.cpp
parent15cb2e2ad2941fa2ad7ebcfc578b141f112326b9 (diff)
Rename all the "newClass" pseudo-constructors to "create".
Since these are static methods, you need to type the class name anyway, so there is no need to type it again after "new". Plain "new" would have been ideal, but unfortunately it is a keyword. For consistency, the Caps constructors have been renamed too, although they did not follow the "newClass" pattern.
Diffstat (limited to 'src/QGst/ghostpad.cpp')
-rw-r--r--src/QGst/ghostpad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/QGst/ghostpad.cpp b/src/QGst/ghostpad.cpp
index c6fc53d..ec52d83 100644
--- a/src/QGst/ghostpad.cpp
+++ b/src/QGst/ghostpad.cpp
@@ -19,14 +19,14 @@
namespace QGst {
-GhostPadPtr GhostPad::newGhostPad(const PadPtr & target, const QGlib::String & name)
+GhostPadPtr GhostPad::create(const PadPtr & target, const QGlib::String & name)
{
GstPad *gp = gst_ghost_pad_new(name, target);
gst_object_ref_sink(gp);
return GhostPadPtr::wrap(GST_GHOST_PAD(gp), false);
}
-GhostPadPtr GhostPad::newGhostPad(PadDirection direction, const QGlib::String & name)
+GhostPadPtr GhostPad::create(PadDirection direction, const QGlib::String & name)
{
GstPad *gp = gst_ghost_pad_new_no_target(name, static_cast<GstPadDirection>(direction));
gst_object_ref_sink(gp);