Re: NULL ptr semantic in wrapped methods
- From: Frank Naumann <fnaumann boerde de>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: NULL ptr semantic in wrapped methods
- Date: Wed, 9 Feb 2005 21:53:47 +0100 (CET)
Hello!
They use
references and thus strictly require an argument even if it's not
necessary. I saw this for example on Gdk::Window::invalidate_rect
(rect argument)
I don't see anywhere in the documentation that says that the argument
could be 0, or what that would mean:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-
invalidate-rect
Yes, the problem is that it's not documented in the gtk+ doc. But C gtk+
apps do this and looking at the gtk+ source code there is something like:
GdkRectangle window_rect;
if (!rect)
{
window_rect.x = ...
...
rect = &window_rect;
}
So it's explicitly coded and allowed input for this function.
Is this a bug and should be reported or do I oversee something?
Yes, it would be a bug, and should be easy to patch.
Should I report it in bugzilla?
Regards,
Frank
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]