const declarations in CORBA impl_*



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]