function parameters not const



There is a reason for functions like:

gtk_tree_store_iter_depth, gtk_tree_store_iter_is_valid,
gtk_list_store_iter_is_valid....

[large part of all the iterator related api, mostly for GtkTreeIter type]

does not use a "const GtkTreeIter *" but a simple GtkTreeIter *?

In C programs is almost the same but for C++ programmers and compilers in
general specifying const where it's correct to do so will be very useful,
and AFAIK in a few API functions this has been already done (most
GtkTextIter related API have their prototypes using const where possible).

-- 
Bye,
 Gabry



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]