Review Request 120138: kshorturifilter : Treat "///..." as "/"

David Faure faure at kde.org
Thu Sep 11 21:18:00 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120138/#review66289
-----------------------------------------------------------



autotests/kurifiltertest.cpp
<https://git.reviewboard.kde.org/r/120138/#comment46272>

    Unbalanced spaces, add space after '(' to match current coding style. I should run astyle-kdelibs over the whole thing though.
    
    Can you add tests for "///" and "//foo" (should turn into smb://foo iirc)?



src/urifilters/shorturi/kshorturifilter.cpp
<https://git.reviewboard.kde.org/r/120138/#comment46271>

    This looks slow. It will go through a very long path, counting the number of slashes, even though it could stop at the first non-'/' character and give up.
    
    Doing it fast requires a small while loop.


- David Faure


On Sept. 11, 2014, 8:50 a.m., Arjun Ak wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120138/
> -----------------------------------------------------------
> 
> (Updated Sept. 11, 2014, 8:50 a.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Repository: kio
> 
> 
> Description
> -------
> 
> "///..." should produce `QUrl("file:///")` not `QUrl("file://")`
> 
> 
> Diffs
> -----
> 
>   autotests/kurifiltertest.cpp b84dcd0 
>   src/urifilters/shorturi/kshorturifilter.cpp 00668d9 
> 
> Diff: https://git.reviewboard.kde.org/r/120138/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Arjun Ak
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140911/635964b2/attachment.html>


More information about the Kde-frameworks-devel mailing list