balootctl: fix 396535
AbandonedPublic

Authored by bruns on Aug 23 2018, 5:48 AM.

Details

Reviewers
jausmus

Diff Detail

Repository
R293 Baloo
Lint
Lint Skipped
Unit
Unit Tests Skipped
jausmus created this revision.Aug 23 2018, 5:48 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 23 2018, 5:48 AM
Restricted Application added subscribers: Baloo, kde-frameworks-devel. · View Herald Transcript
jausmus requested review of this revision.Aug 23 2018, 5:48 AM

Do not use QDir::separator

if (!folder.endsWith(QLatin1Char('/')) {
    folder += QLatin1Char('/');
}

Do not use QDir::separator

if (!folder.endsWith(QLatin1Char('/')) {
    folder += QLatin1Char('/');
}

Does balooctl not need cross platform support?

Do not use QDir::separator

if (!folder.endsWith(QLatin1Char('/')) {
    folder += QLatin1Char('/');
}

Does balooctl not need cross platform support?

I believe this explains why QDirSeparator should not be used here: http://agateau.com/2015/qdir-separator-considered-harmful/

bruns requested changes to this revision.Aug 23 2018, 1:26 PM
bruns added a subscriber: bruns.
  1. Use a proper commit message, with subject and body
  2. Please use "arc diff ..." to upload the diff, revisions without context are hard to review.
This revision now requires changes to proceed.Aug 23 2018, 1:26 PM

Do not use QDir::separator

if (!folder.endsWith(QLatin1Char('/')) {
    folder += QLatin1Char('/');
}

Does balooctl not need cross platform support?

I believe this explains why QDirSeparator should not be used here: http://agateau.com/2015/qdir-separator-considered-harmful/

Got it - will update and resubmit. Thanks!

  1. Use a proper commit message, with subject and body
  2. Please use "arc diff ..." to upload the diff, revisions without context are hard to review.

Will do, my apologies. Hadn't realized the git commit message wouldn't be pulled in via the web interface upload. :)

bruns commandeered this revision.Feb 28 2019, 9:17 PM
bruns abandoned this revision.
bruns edited reviewers, added: jausmus; removed: bruns.

This has been fixed with D18829