function parameters not const
- From: "Gabriele Greco" <gabriele greco darts it>
- To: gtk-app-devel-list gnome org
- Subject: function parameters not const
- Date: Tue, 15 Apr 2008 15:47:42 +0200
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]