diff options
author | Marc Mutz <[email protected]> | 2025-09-30 15:09:31 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-10-15 09:13:46 +0200 |
commit | 0f3793fea21b17e540265e0f802fdf7b1a6340fe (patch) | |
tree | cabfe7c023b0298d230e063ac40b6210c5fbbdbc /src/plugins/platforms/android/qandroidapkfileengine.h | |
parent | 43528b545dee0a82f475f4578368017e546f6e43 (diff) |
Don't create a QString object that we might not need (if the optional
already contains one).
Using value_or() with an argument that is not of trivial type is like
having a function default argument of the same type: it's constructed
whether we need it or not; one should use overloading instead
(QTBUG-98117).
Rewrite to the equally-readable check-and-return-else-default-construct.
Amends 40523b68c14bf618bdc2d5438deebf34627be3af.
Pick-to: 6.10 6.8
Task-number: QTBUG-98117
Change-Id: Iecd7fa9c3705c8416b5609e6d157079e10bfca59
Reviewed-by: Oliver Wolff <[email protected]>
Diffstat (limited to 'src/plugins/platforms/android/qandroidapkfileengine.h')
0 files changed, 0 insertions, 0 deletions