[mythtv] memory leak in MainServer::FillStatusXML
Joseph A. Caputo
jcaputo1 at comcast.net
Wed Jul 13 10:11:55 EDT 2005
On Wednesday 13 July 2005 9:27, George Nassas wrote:
> On 13-Jul-05, at 1:16 AM, Tj wrote:
> > QString objects can use the "==" operator to compare with another
> > const char * or QString variable...
> You're right, when I looked over
> http://doc.trolltech.com/3.3/qstring.html I failed to notice the
> operators under the static members.
> I wonder why they're listed as
> "Related Functions".
Be careful what you wonder; someone might oblige you with an answer...
Because they're not member functions, they're free operator functions.
Binary, associative operators (like ==, <, >, <=, >=, +, -) are usually
defined as free functions to avoid problems/inefficiences related to
implicit type conversion and argument ordering. Conversely,
non-associative binary operators (usually ones that modify the left
operand, like += or -=) and unary operators (~, !, ++, --, etc) are
usually defined as member functions, specifically to *avoid* implicit
type conversion, as it would produce undesirable results in those
More information about the mythtv-dev