Bug 19943 - [Gtk] Use G_CONST_RETURN instead of const
Summary: [Gtk] Use G_CONST_RETURN instead of const
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2008-07-08 07:25 PDT by Jan Alonzo
Modified: 2008-07-11 15:08 PDT (History)
0 users

See Also:


Attachments
use G_CONST_RETURN instead of const (6.88 KB, patch)
2008-07-08 07:27 PDT, Jan Alonzo
christian: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Alonzo 2008-07-08 07:25:03 PDT
Use G_CONST_RETURN instead of const for return values that are supposed to be const.
Comment 1 Jan Alonzo 2008-07-08 07:27:48 PDT
Created attachment 22156 [details]
use G_CONST_RETURN instead of const

This patch replaces const with G_CONST_RETURN wherever const is used in the API (currently for functions that return const gchar*)
Comment 2 Christian Dywan 2008-07-11 02:52:50 PDT
Comment on attachment 22156 [details]
use G_CONST_RETURN instead of const

This looks like a good idea. It's what gtk does for public API return values as well.
Comment 3 Jan Alonzo 2008-07-11 15:08:17 PDT
Thanks Christian. Landed in r35136