Re: Replacing pointers with references for output parameters



On 24 May 2017 at 17:23, Daniel Boles <dboles src gmail com> wrote:
Also, in the case of SpinButton::signal_input(), it should return a bool, but it currently returns a plain int. I guess it was hastily wrapped, way back when.

Ah. It is documented as being able to return a Gtk::INPUT_ERROR, so that's why it's an int. Perhaps a real enumeration would be cleaner in this case? With enumerators like {unhandled, success, input_error}.



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