After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755077 - gautoptr: Document better what can be declared
gautoptr: Document better what can be declared
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-09-15 17:43 UTC by Nicolas Dufresne (ndufresne)
Modified: 2015-09-21 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
doc: small clarification in g_autoptr() (977 bytes, patch)
2015-09-15 20:52 UTC, Xavier Claessens
committed Details | Review

Description Nicolas Dufresne (ndufresne) 2015-09-15 17:43:49 UTC
The documentation could be clarified. It was not clear if that construction is allowed or not:

  g_autoptr(Type) t1, t2, t3;

After testing is seems to work, and if that's right, it would be nice if the documentation state this.
Comment 1 Xavier Claessens 2015-09-15 18:22:49 UTC
While at it, g_autoptr()'s doc could also link to g_steal_pointer().
Comment 2 Xavier Claessens 2015-09-15 20:52:20 UTC
Created attachment 311413 [details] [review]
doc: small clarification in g_autoptr()
Comment 3 Matthias Clasen 2015-09-21 13:08:44 UTC
Attachment 311413 [details] pushed as 3ffed91 - doc: small clarification in g_autoptr()