diff options
| author | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:19:09 +0100 |
|---|---|---|
| committer | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:37:00 +0100 |
| commit | 313bd649dd6cbdd2bf78387aae3674680079fa98 (patch) | |
| tree | 310de40038f383300164a82904f7942f7f5230ce /src/dialogs/FallbackAuth.cpp | |
| parent | InputBar: use character argument instead of string (diff) | |
| download | nheko-313bd649dd6cbdd2bf78387aae3674680079fa98.tar.xz | |
InputBar: use multi-arg string replacement
This could actually change the behaviour here (could, because I don't
know if we can hit this special case) but this should hopefully the
correct way of doing this.
There's some detailed explanation of the difference here:
https://doc.qt.io/qt-5/qstring.html#arg-14
> This is the same as str.arg(a1).arg(a2), except that the strings
> a1 and a2 are replaced in one pass. This can make a difference if
> a1 contains e.g. %1:
```
QString str;
str = "%1 %2";
str.arg("%1f", "Hello"); // returns "%1f Hello"
str.arg("%1f").arg("Hello"); // returns "Hellof %2"
```
Suggested-by:
Clazy: Use multi-arg instead
Diffstat (limited to 'src/dialogs/FallbackAuth.cpp')
0 files changed, 0 insertions, 0 deletions
