diff options
Diffstat (limited to 'interchange.cxx')
-rw-r--r-- | interchange.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/interchange.cxx b/interchange.cxx index 22561cc..06e5957 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -4,7 +4,7 @@ namespace QInterchange { static Interchange* interchange; - static const QString* currentPath; + static QString currentPath; Interchange::Interchange(const char* sampleURL, const char* image_Dir, const QString& cookie, const QString& certificate) @@ -24,10 +24,10 @@ namespace QInterchange { void Interchange::page(QString const& path) { - currentPath = &path; + currentPath = path; interchange_page(path.toLatin1().constData(), [](interchange_response* response) { - interchange->emitPage(*currentPath, + interchange->emitPage(currentPath, QString{response->data}); interchange_free_response(response); }); |