Skip to content

Commit 807957c

Browse files
committed
Add missing cast for recent GObject
1 parent c0a88d5 commit 807957c

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

cutter/cut-loader-customizer-factory-builder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
22
/*
3-
* Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
3+
* Copyright (C) 2014-2025 Sutou Kouhei <kou@clear-code.com>
44
*
55
* This library is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -74,7 +74,7 @@ constructor (GType type, guint n_props, GObjectConstructParam *props)
7474
object = klass->constructor(type, n_props, props);
7575
the_builder = CUT_LOADER_CUSTOMIZER_FACTORY_BUILDER(object);
7676
} else {
77-
object = g_object_ref(the_builder);
77+
object = g_object_ref(G_OBJECT(the_builder));
7878
}
7979

8080
return object;

cutter/cut-report-factory-builder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
22
/*
3-
* Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org>
3+
* Copyright (C) 2007-2025 Sutou Kouhei <kou@cozmixng.org>
44
*
55
* This library is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -90,7 +90,7 @@ constructor (GType type, guint n_props, GObjectConstructParam *props)
9090
object = klass->constructor(type, n_props, props);
9191
the_builder = CUT_REPORT_FACTORY_BUILDER(object);
9292
} else {
93-
object = g_object_ref(the_builder);
93+
object = g_object_ref(G_OBJECT(the_builder));
9494
}
9595

9696
return object;

cutter/cut-stream-factory-builder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
22
/*
3-
* Copyright (C) 2007-2011 Kouhei Sutou <kou@clear-code.com>
3+
* Copyright (C) 2007-2025 Sutou Kouhei <kou@clear-code.com>
44
*
55
* This library is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -91,7 +91,7 @@ constructor (GType type, guint n_props, GObjectConstructParam *props)
9191
object = klass->constructor(type, n_props, props);
9292
the_builder = CUT_STREAM_FACTORY_BUILDER(object);
9393
} else {
94-
object = g_object_ref(the_builder);
94+
object = g_object_ref(G_OBJECT(the_builder));
9595
}
9696

9797
return object;

cutter/cut-ui-factory-builder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
22
/*
3-
* Copyright (C) 2007-2009 Kouhei Sutou <kou@clear-code.com>
3+
* Copyright (C) 2007-2025 Sutou Kouhei <kou@clear-code.com>
44
*
55
* This library is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -77,7 +77,7 @@ constructor (GType type, guint n_props, GObjectConstructParam *props)
7777
object = klass->constructor(type, n_props, props);
7878
the_builder = CUT_UI_FACTORY_BUILDER(object);
7979
} else {
80-
object = g_object_ref(the_builder);
80+
object = g_object_ref(G_OBJECT(the_builder));
8181
}
8282

8383
return object;

0 commit comments

Comments
 (0)