[glib: 8/15] guri: Use NONE values of flags rather than 0
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 8/15] guri: Use NONE values of flags rather than 0
- Date: Fri, 7 Aug 2020 14:14:30 +0000 (UTC)
commit 83597b9e579b3e3b5d897be32b8e3b18720b74c3
Author: Philip Withnall <withnall endlessm com>
Date: Thu Aug 6 14:03:27 2020 +0100
guri: Use NONE values of flags rather than 0
This introduces no functional changes, but makes the code a little
easier to read.
Signed-off-by: Philip Withnall <withnall endlessm com>
glib/guri.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/guri.c b/glib/guri.c
index 62e8bbf49..f0944a050 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -1756,7 +1756,7 @@ g_uri_to_string (GUri *uri)
{
g_return_val_if_fail (uri != NULL, NULL);
- return g_uri_to_string_partial (uri, 0);
+ return g_uri_to_string_partial (uri, G_URI_HIDE_NONE);
}
/**
@@ -2325,7 +2325,7 @@ g_uri_get_fragment (GUri *uri)
GUriFlags
g_uri_get_flags (GUri *uri)
{
- g_return_val_if_fail (uri != NULL, 0);
+ g_return_val_if_fail (uri != NULL, G_URI_FLAGS_NONE);
return uri->flags;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]