Commit a0e01c46 authored by John Sullivan's avatar John Sullivan
Browse files

Casted away a const to fix the build.

parent 83fe21de
1999-12-28 John Sullivan <sullivan@eazel.com>
* src/ntl-view.c: (nautilus_view_load_client): cast
a const CORBA_char * to a CORBA_char * in call to
GNOME_Unknown_query_interface to fix the build.
Darin thinks this is a mistake in the API and is
investigating fixing the API.
1999-12-22 Elliot Lee <sopwith@redhat.com>
* src/ntl-uri-map.[ch]: Add initialization function. Implement scheme mapping.
......
......@@ -339,8 +339,11 @@ nautilus_view_load_client(NautilusView *view, const char *iid)
for(i = 0; component_types[i] && !view->component_class; i++)
{
/* FIXME: (CORBA_char *) cast required because API won't take const CORBA_char *.
* GNOME_Unknown_query_interface should be changed to allow const CORBA_char * for 2nd parameter.
*/
obj = GNOME_Unknown_query_interface(gnome_object_corba_objref(GNOME_OBJECT(view->client_object)),
component_types[i]->primary_repoid, &ev);
(CORBA_char *)component_types[i]->primary_repoid, &ev);
if(ev._major != CORBA_NO_EXCEPTION)
obj = CORBA_OBJECT_NIL;
......
......@@ -339,8 +339,11 @@ nautilus_view_load_client(NautilusView *view, const char *iid)
for(i = 0; component_types[i] && !view->component_class; i++)
{
/* FIXME: (CORBA_char *) cast required because API won't take const CORBA_char *.
* GNOME_Unknown_query_interface should be changed to allow const CORBA_char * for 2nd parameter.
*/
obj = GNOME_Unknown_query_interface(gnome_object_corba_objref(GNOME_OBJECT(view->client_object)),
component_types[i]->primary_repoid, &ev);
(CORBA_char *)component_types[i]->primary_repoid, &ev);
if(ev._major != CORBA_NO_EXCEPTION)
obj = CORBA_OBJECT_NIL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment