From 4b8ef74da93c6ef4661c77373ea6818397e8d798 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: Sun, 12 Mar 2023 10:23:22 +0800 Subject: Change cookie & cert param types to QString& --- interchange.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'interchange.cxx') diff --git a/interchange.cxx b/interchange.cxx index f0141d6..4806865 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -5,11 +5,15 @@ namespace QInterchange { static Interchange* interchange; - Interchange::Interchange(char const* sampleURL, char const* image_Dir, - char const* cookie, char const* certificate) + Interchange::Interchange(const char* sampleURL, const char* image_Dir, + const QString& cookie, const QString& certificate) { interchange = this; - interchange_init(sampleURL, image_Dir, cookie, certificate); + interchange_init(sampleURL, image_Dir, + cookie.isEmpty() ? nullptr + : cookie.toLatin1().constData(), + certificate.isEmpty() ? nullptr + : certificate.toLatin1().constData()); } Interchange::~Interchange() -- cgit v1.2.3