2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

QString::arg usage optimization

This commit is contained in:
Ilya Fedin
2023-12-22 03:50:42 +04:00
committed by John Preston
parent e6b9a07163
commit 29646707a1
7 changed files with 14 additions and 16 deletions

View File

@@ -985,8 +985,7 @@ void Form::validateCard(
if (error) {
LOG(("Stripe Error %1: %2 (%3)"
).arg(int(error.code())
).arg(error.description()
).arg(error.message()));
).arg(error.description(), error.message()));
_updates.fire(Error{ Error::Type::Stripe, error.description() });
} else {
setPaymentCredentials({
@@ -1036,8 +1035,7 @@ void Form::validateCard(
if (error) {
LOG(("SmartGlocal Error %1: %2 (%3)"
).arg(int(error.code())
).arg(error.description()
).arg(error.message()));
).arg(error.description(), error.message()));
_updates.fire(Error{
Error::Type::SmartGlocal,
error.description(),