lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Input-sequence editor testing


From: Greg Chicares
Subject: Re: [lmi] Input-sequence editor testing
Date: Fri, 24 Jun 2011 13:39:43 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 2011-06-24 13:12Z, Greg Chicares wrote:
> 
> Please help me understand: an 'eventSink' parameter is used here...
[...]
> ...and in two similar new calls to ::Connect(); and that parameter is
> 'this' in all cases, which is the default argument...

More precisely, the default parameter is NULL, but the documentation:
  
http://docs.wxwidgets.org/trunk/classwx_evt_handler.html#78719e8b82c9f9c6e4056b3449df1943
says "If it is omitted, this is used". And the wx-2.9 documentation:
  
http://docs.wxwidgets.org/2.9/classwx_evt_handler.html#1e8b5fc4c7e7f6d32d40bc00d4108ba4
seems the same, so I'm guessing that this change isn't required for
wx-2.9.2 compatibility. I suppose the documentation means that wx
detects the NULL default and uses 'this' instead in that case. But I
still don't understand why we can't just omit it.

I tried omitting it experimentally, though, and it crashed, so there
definitely seems to be something important that I'm just not seeing.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]