Re: Using a Const Gtk::TextBuffer Object?





On 11/24/05, Murray Cumming <murrayc murrayc com> wrote:

>  Hello,
>
> I've noticed that the method:
> Glib::ustring Gtk::TextBuffer::get_text(bool include_hidden_chars=true);
> is non-const. Is this by design? Since it returns a Glib::ustring, *not* a
> reference, shouldn't it logically avoid
> modifying a Gtk::TextBuffer object?

Yes, it should be const. I'll add a const overload in the HEAD branch.
Please use bugzilla if I forget.


  Done.

  BTW, IMHO you did a great job on gtkmm - thx.



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