Use glib::Object::new() instead of new_default()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1209>
This commit is contained in:
Sebastian Dröge 2023-01-31 10:50:21 +02:00
parent c62530e181
commit 478606e44c
6 changed files with 9 additions and 9 deletions

View file

@ -154,7 +154,7 @@ mod media_factory {
impl Default for Factory { impl Default for Factory {
// Creates a new instance of our factory // Creates a new instance of our factory
fn default() -> Factory { fn default() -> Factory {
glib::Object::new_default() glib::Object::new()
} }
} }
} }
@ -266,7 +266,7 @@ mod server {
impl Default for Server { impl Default for Server {
// Creates a new instance of our factory // Creates a new instance of our factory
fn default() -> Server { fn default() -> Server {
glib::Object::new_default() glib::Object::new()
} }
} }
} }
@ -315,7 +315,7 @@ mod client {
impl Default for Client { impl Default for Client {
// Creates a new instance of our factory // Creates a new instance of our factory
fn default() -> Client { fn default() -> Client {
glib::Object::new_default() glib::Object::new()
} }
} }
} }
@ -359,7 +359,7 @@ mod mount_points {
impl Default for MountPoints { impl Default for MountPoints {
// Creates a new instance of our factory // Creates a new instance of our factory
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }
} }

View file

@ -223,7 +223,7 @@ impl<O: IsA<Bin>> GstBinExtManual for O {
impl Default for Bin { impl Default for Bin {
fn default() -> Self { fn default() -> Self {
glib::object::Object::new_default() glib::object::Object::new()
} }
} }

View file

@ -51,7 +51,7 @@ impl<O: IsA<crate::Pipeline>> GstPipelineExtManual for O {
impl Default for Pipeline { impl Default for Pipeline {
fn default() -> Self { fn default() -> Self {
glib::object::Object::new_default() glib::object::Object::new()
} }
} }

View file

@ -150,7 +150,7 @@ mod tests {
impl Default for TestAllocator { impl Default for TestAllocator {
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }

View file

@ -517,7 +517,7 @@ mod tests {
impl Default for TestBufferPool { impl Default for TestBufferPool {
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }

View file

@ -306,7 +306,7 @@ mod tests {
impl Default for TestPool { impl Default for TestPool {
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }