summaryrefslogtreecommitdiff
path: root/interchange.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:23:22 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:23:22 +0800
commit4b8ef74da93c6ef4661c77373ea6818397e8d798 (patch)
tree57968bc1ec736da78579d75d6507965e4ecbea1a /interchange.cxx
parent18cd0a85f48ff6a7cf05311c42c7bb1a39f77988 (diff)
Change cookie & cert param types to QString&
Diffstat (limited to 'interchange.cxx')
-rw-r--r--interchange.cxx10
1 files changed, 7 insertions, 3 deletions
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()