Review Request 111916: Port khtml_part away from kde_file.h

David Faure faure at kde.org
Mon Aug 12 09:40:21 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111916/#review37565
-----------------------------------------------------------



khtml/khtml_part.cpp
<http://git.reviewboard.kde.org/r/111916/#comment27760>

    Is this variable still used?



khtml/khtml_part.cpp
<http://git.reviewboard.kde.org/r/111916/#comment27761>

    You reversed the condition. stat() returns 0 on success. So, no "!" before exists.



khtml/khtml_part.cpp
<http://git.reviewboard.kde.org/r/111916/#comment27763>

    That's not what lstat does....
    
    The case where stat() fails and lstat() succeeds is the case of a broken symlink.
    
    In that case, QFileInfo::exists() returns false. I guess all we can do then is skip this second check, and use if (info.isSymlink()) below, without ok&& in front. I.e. always go into the symlink code, whether the symlink is valid or broken.


- David Faure


On Aug. 12, 2013, 9:35 a.m., Vishesh Handa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111916/
> -----------------------------------------------------------
> 
> (Updated Aug. 12, 2013, 9:35 a.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Description
> -------
> 
>  Port khtml_part away from kde_file.h
> 
> 
> Diffs
> -----
> 
>   khtml/khtml_part.cpp d944a29 
> 
> Diff: http://git.reviewboard.kde.org/r/111916/diff/
> 
> 
> Testing
> -------
> 
> Compiles. The tests seem to segfault with and without this patch. I'll try to diagnose it.
> 
> 
> Thanks,
> 
> Vishesh Handa
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130812/21a0c1c2/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list