Review Request 111675: Port away from kde_file in KRecentDocument (KIO)

David Faure faure at kde.org
Sat Jul 27 10:46:53 UTC 2013


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



kio/kfile/krecentdocument.cpp
<http://git.reviewboard.kde.org/r/111675/#comment26988>

    What a surprising solution :)
    
    I would expect this code to empty the file...
    It writes an empty file where the existing file is...
    If it doesn't, it exploits a strange side-effect of QSaveFile :)
    
    How about using QFile, and ReadWrite mode, to preserve the contents?


- David Faure


On July 24, 2013, 8:56 p.m., David Gil Oliva wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111675/
> -----------------------------------------------------------
> 
> (Updated July 24, 2013, 8:56 p.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Description
> -------
> 
> Port away from kde_file in KRecentDocument (KIO)
> 
> Clean up header
> 
> 
> Diffs
> -----
> 
>   kio/kfile/krecentdocument.cpp 13900c6d0dca0b30cb11a49a29e1918b35f5c9c9 
> 
> Diff: http://git.reviewboard.kde.org/r/111675/diff/
> 
> 
> Testing
> -------
> 
> It builds.
> 
> I have also verified that the new code works, setting the file last access and modification time to the current time. That way, the porting is equivalent to the former code.
> 
> 
> Thanks,
> 
> David Gil Oliva
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130727/8685d3b4/attachment.html>


More information about the Kde-frameworks-devel mailing list