Skip to content

[stable-3.17] refactor: Use correct string overload#9230

Merged
camilasan merged 1 commit intostable-3.17from
backport/8992/stable-3.17
Dec 11, 2025
Merged

[stable-3.17] refactor: Use correct string overload#9230
camilasan merged 1 commit intostable-3.17from
backport/8992/stable-3.17

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot bot commented Dec 11, 2025

Backport of #8992

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Use QLatin1String overload when possible (mostly QJsonObject and string comparaison).

See https://www.volkerkrause.eu/2023/09/09/qt-string-bloat.html

Save around 11Kib in the final binary.

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
@camilasan camilasan force-pushed the backport/8992/stable-3.17 branch from 5278f55 to c9ba287 Compare December 11, 2025 10:18
@CarlSchwan
Copy link
Copy Markdown
Member

Not really sure this need a backport, this is a tiny optimization reducing a bit the binary size and removing some allocation

@camilasan camilasan marked this pull request as ready for review December 11, 2025 10:20
@github-actions
Copy link
Copy Markdown

Artifact containing the AppImage: nextcloud-appimage-pr-9230.zip

Digest: sha256:b37dfa6d4bdabdd23d3377b13afbe1234afff7b5888704ef29c94e9263ff1abf

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@camilasan camilasan merged commit 47f28b9 into stable-3.17 Dec 11, 2025
16 of 18 checks passed
@camilasan camilasan deleted the backport/8992/stable-3.17 branch December 11, 2025 11:02
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
54.6% Coverage on New Code (required ≥ 80%)
1 New Bugs (required ≤ 0)
30 New Code Smells (required ≤ 0)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants