Re: [patch] Make the volume argument const in most functions of gnome-vfs-volume.[ch]
- From: Alexander Larsson <alexl redhat com>
- To: Vincent Untz <vuntz gnome org>
- Cc: gnome-vfs-list gnome org
- Subject: Re: [patch] Make the volume argument const in most functions of gnome-vfs-volume.[ch]
- Date: Mon, 31 Oct 2005 09:14:52 +0100
On Sun, 2005-10-30 at 10:12 +0100, Vincent Untz wrote:
> Hi,
>
> The attached patch makes the volume argument const in most functions of
> gnome-vfs-volume.[ch]
>
> This doesn't break the API, however if applied, it won't be possible to
> revert it without breaking the API.
>
> This fixes some warnings in applications.
How did the application ever get a const volume object? Does any of our
API return that?
Its a bit weird to have a const GObject, because none of the GObject
methods take const objects, so you can't use it for much. Ref/unref
takes non-const args, so you can't even memory manage them.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a suicidal native American paranormal investigator who hangs with the
wrong crowd. She's a man-hating green-skinned mercenary from a different time
and place. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]