[libsoup] SoupURI: make soup_uri_new_with_base a constructor



commit bc1f518e40b3735c7646b65dc27565e90ae17557
Author: Corentin Noël <corentin elementary io>
Date:   Thu Mar 29 22:48:38 2018 +0100

    SoupURI: make soup_uri_new_with_base a constructor
    
    It is currently described as a method as it takes a SoupURI as first parameter when typically functions 
foo_bar_new* are constructors.

 libsoup/soup-uri.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index be778d6c..caac74ea 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -224,13 +224,13 @@ soup_scheme_default_port (const char *scheme)
 }
 
 /**
- * soup_uri_new_with_base:
+ * soup_uri_new_with_base: (constructor)
  * @base: a base URI
  * @uri_string: the URI
  *
  * Parses @uri_string relative to @base.
  *
- * Return value: a parsed #SoupURI.
+ * Returns: a parsed #SoupURI.
  **/
 SoupURI *
 soup_uri_new_with_base (SoupURI *base, const char *uri_string)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]