[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: bug in khtmlw
From:       Martin Jones <mjones () powerup ! com ! au>
Date:       1997-07-31 8:18:04
[Download RAW message or body]

Stephan Kulow wrote:
> 
> Martin Jones wrote:
> >
> > weis@stud.uni-frankfurt.de wrote:
> > >
> > > This is my fault. Sorry :-)
> > >
> >
> > There is nothing wrong with if ( !url.isNull() && url[0] != 0 )
> > but if ( !url.isEmpty() ) is shorter and does the same thing :-)
> >
> Are you sure, that it works? You must know, since days now, I run kfm
> only in a gdb session and a SIGSEV stoped kfm exactly in this line.
> Since the url object is defined, it could only be the reference to the
> data, that is missing. I don't want to blame somebody ;), but I think,
> this should be discussed, so we can learn for the next time!
> 

Have a look at the examples for QString::isNull() in the Qt docs.
If QString.data() is NULL, length == 0.  isEmpty() returns true if
length == 0.

-- 
bye,
Martin Jones
mjones@kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic