From 6f7cfa3f167920ca1e38a0b9bee2cf373431e980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 21 Feb 2023 18:53:30 +0800 Subject: Revert "Send nullptrs when receiving empty strings" This reverts commit 44a6f010a4f7a699bdda5071c4de981499b544c1. --- member.cxx | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/member.cxx b/member.cxx index 3f97dfd..aa0c66d 100644 --- a/member.cxx +++ b/member.cxx @@ -348,24 +348,15 @@ namespace QInterchange { QString const& state, QString const& zip, QString const& email, QString const& phoneDay) { - interchange_member_setaccount(firstName == "" - ? nullptr : firstName.toLatin1().constData(), - lastName == "" - ? nullptr : lastName.toLatin1().constData(), - address1 == "" - ? nullptr : address1.toLatin1().constData(), - address2 == "" - ? nullptr : address2.toLatin1(). constData(), - city == "" - ? nullptr : city.toLatin1(). constData(), - state == "" - ? nullptr : state.toLatin1(). constData(), - zip == "" - ? nullptr : zip.toLatin1(). constData(), - email == "" - ? nullptr : email.toLatin1(). constData(), - phoneDay == "" - ? nullptr : phoneDay.toLatin1().constData()); + interchange_member_setaccount(firstName.toLatin1().constData(), + lastName.toLatin1().constData(), + address1.toLatin1().constData(), + address2.toLatin1().constData(), + city.toLatin1().constData(), + state.toLatin1().constData(), + zip.toLatin1().constData(), + email.toLatin1().constData(), + phoneDay.toLatin1().constData()); } void Member::changePassword(QString const& passwordOld, QString const& password, -- cgit v1.2.3