Dolphin Service Menu installer cleanup
ClosedPublic

Authored by alex on Apr 13 2020, 5:35 PM.

Details

Summary

This patch contains some smaller formatting/coding style changes
to avoid unrelated changes in other patches.

  • Use {} instead of QStringList{} consistently
  • Use parehthesese in UncompressCommand({}) consistently
  • Use QStringList name = {} instead of auto name = QStringList{}
  • Add one qAsConst, remove qAsConst if value is already const
Test Plan

Compile, install and run tests

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
alex created this revision.Apr 13 2020, 5:35 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptApr 13 2020, 5:35 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
alex requested review of this revision.Apr 13 2020, 5:35 PM
elvisangelaccio accepted this revision.Apr 13 2020, 5:54 PM
elvisangelaccio added a subscriber: elvisangelaccio.
elvisangelaccio added inline comments.
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
285

While at it, make it const.

This revision is now accepted and ready to land.Apr 13 2020, 5:54 PM
alex updated this revision to Diff 80038.Apr 13 2020, 5:58 PM

Add const modifiers

ngraham accepted this revision.Apr 13 2020, 6:43 PM

I was just about to say the same thing. :)

alex added a comment.Apr 13 2020, 7:13 PM

Quick question: Should I also push this to release/20.04?
Because there are some broken plugin in the KDE store (install and uninstall scripts)
and this patch is like a preparation patch to fix this.

In D28801#647488, @alex wrote:

Quick question: Should I also push this to release/20.04?
Because there are some broken plugin in the KDE store (install and uninstall scripts)
and this patch is like a preparation patch to fix this.

Yes please.

This revision was automatically updated to reflect the committed changes.