summaryrefslogtreecommitdiffstats
path: root/src/core/custom_url_scheme_handler.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-20 11:59:02 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-20 14:16:22 +0000
commit61dec11a8bc36d37ed36acc6ad897653735d4564 (patch)
tree2de013b04c38fd6734f744182d1e40b13521516d /src/core/custom_url_scheme_handler.h
parentd2b9c003f87e34ca599d3264a9af371e435ad0f8 (diff)
Fix crashes and ownership issues in Custom URL scheme handling
Fixes crashes exposed by implementing the qthelp protocol handler for Qt assistant. Change-Id: I0b1153bc52ff82838cde009f1fe1ac46edc43210 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/custom_url_scheme_handler.h')
-rw-r--r--src/core/custom_url_scheme_handler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/custom_url_scheme_handler.h b/src/core/custom_url_scheme_handler.h
index fef29c98a..dbcdf2a60 100644
--- a/src/core/custom_url_scheme_handler.h
+++ b/src/core/custom_url_scheme_handler.h
@@ -55,13 +55,12 @@ public:
QByteArray scheme() const;
void setScheme(const QByteArray &);
- CustomProtocolHandler *protocolHandler();
+ CustomProtocolHandler *createProtocolHandler();
virtual bool handleJob(URLRequestCustomJobDelegate*) = 0;
private:
QByteArray m_scheme;
- QScopedPointer<CustomProtocolHandler> m_protocolHandler;
};
#endif // CUSTOM_URL_SCHEME_HANDLER_H_