projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ec1c86
)
native: Don't compare a pointer with 0
author
Timm Bäder
<mail@baedert.org>
Tue, 10 Sep 2019 13:28:31 +0000
(15:28 +0200)
committer
Timm Bäder
<mail@baedert.org>
Wed, 11 Sep 2019 06:12:31 +0000
(08:12 +0200)
We have NULL for that.
gtk/gtknative.c
patch
|
blob
|
history
diff --git
a/gtk/gtknative.c
b/gtk/gtknative.c
index a14a0af864131976e7d8a0c07769555647530139..6b079987ea4cd505106d84234cf261c230788968 100644
(file)
--- a/
gtk/gtknative.c
+++ b/
gtk/gtknative.c
@@
-102,12
+102,12
@@
gtk_native_get_renderer (GtkNative *self)
void
gtk_native_get_surface_transform (GtkNative *self,
-
int
*x,
-
int
*y)
+
int
*x,
+
int
*y)
{
g_return_if_fail (GTK_IS_NATIVE (self));
- g_return_if_fail (x !=
0
);
- g_return_if_fail (y !=
0
);
+ g_return_if_fail (x !=
NULL
);
+ g_return_if_fail (y !=
NULL
);
return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
}