mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
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>
This commit is contained in:
parent
41a21c3566
commit
83597b9e57
@ -1756,7 +1756,7 @@ g_uri_to_string (GUri *uri)
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (uri != NULL, NULL);
|
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
|
GUriFlags
|
||||||
g_uri_get_flags (GUri *uri)
|
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;
|
return uri->flags;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user