Quellcode durchsuchen

Make LSUP_graph_uri return const.

scossu vor 2 Wochen
Ursprung
Commit
dedc1d2bea
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      include/graph.h
  2. 1 1
      src/graph.c

+ 1 - 1
include/graph.h

@@ -139,7 +139,7 @@ LSUP_graph_equals (const LSUP_Graph *gr1, const LSUP_Graph *gr2);
  *
  * To change the graph URI, use #LSUP_graph_set_uri.
  */
-LSUP_Term *
+const LSUP_Term *
 LSUP_graph_uri (const LSUP_Graph *gr);
 
 

+ 1 - 1
src/graph.c

@@ -201,7 +201,7 @@ LSUP_graph_free (LSUP_Graph *gr)
 }
 
 
-LSUP_Term *
+const LSUP_Term *
 LSUP_graph_uri (const LSUP_Graph *gr) { return gr->uri; }