Review Request 122445: an if-statement at KDesktopFile::locateLocal is not build correctly

Guy Maurel guy-kde at maurel.de
Sat Feb 14 18:11:01 UTC 2015



> On Feb. 12, 2015, 11:49 p.m., Albert Astals Cid wrote:
> > Guy: ping?

pong! I was on the road until today


- Guy


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


On Feb. 5, 2015, 7:36 p.m., Guy Maurel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122445/
> -----------------------------------------------------------
> 
> (Updated Feb. 5, 2015, 7:36 p.m.)
> 
> 
> Review request for KDE Frameworks, Cornelius Schumacher, Nicolás Alvarez, and Thiago Macieira.
> 
> 
> Repository: kconfig
> 
> 
> Description
> -------
> 
> The if statements at lines 84, 91
> if (path.startsWith(dir) + '/') {
> cannot be correct. The value of (path.startsWith(dir) + '/') is always 47.
> 
> I propose to use:
>     QString plus = QLatin1String("/");
>     QString dirPlus;
> ...
>      Q_FOREACH (...) {
>         dirPlus = dir;
>         dirPlus.append(plus);
>         if (path.startsWith(dirPlus)) {
> 
> 
> Diffs
> -----
> 
>   src/core/kdesktopfile.cpp 6381cb30ba9382de492e2d8d4cf1f9e342f1c509 
> 
> Diff: https://git.reviewboard.kde.org/r/122445/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Guy Maurel
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150214/7efa8703/attachment.html>


More information about the Kde-frameworks-devel mailing list