const declarations in CORBA impl_*
- From: Dietmar Maurer <dm vlsivie tuwien ac at>
- To: "gnome-components-list gnome org" <gnome-components-list gnome org>
- Subject: const declarations in CORBA impl_*
- Date: Sun, 21 Nov 1999 13:28:38 +0100
orbit-idl generates prototypes without const declarations for path.
> static GNOME_Storage_directory_list *
> impl_list_contents (PortableServer_Servant servant,
> const CORBA_char * path,
> CORBA_Environment * ev)
> {
> GnomeStorage *storage = gnome_storage_from_servant (servant);
>
> return CLASS (storage)->list_contents (storage, path, ev);
> }
Thus the following asignment generates a compiler warning:
gnome_storage_epv.list_contents = impl_list_contents;
Should we remove the const declaration from impl_list_contents in order to
supress the compiler warnings?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]