summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAlexander Volkov <avolkov@astralinux.ru>2021-01-13 16:39:08 +0300
committerAlexander Volkov <avolkov@astralinux.ru>2021-01-14 13:01:57 +0300
commitcefef116ef6d497dce31ea1e83a5be2e7970fb2e (patch)
tree6c2f8dda5d80cb96738e18437f2c717799e11cce /src/gui
parentd2e2d0d3a6249ccbc17ec92acb32fec9a0d71807 (diff)
Disable copying of QUrlResourceProvider to avoid slicing
Amends 376e3bd8ecf40881685714f6f19e12d68e92127e Change-Id: Ib7b0de900c009f3bdb3f699a218444aafbe2eabe Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qurlresourceprovider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qurlresourceprovider.h b/src/gui/text/qurlresourceprovider.h
index 587a371a83..088a878d8c 100644
--- a/src/gui/text/qurlresourceprovider.h
+++ b/src/gui/text/qurlresourceprovider.h
@@ -48,7 +48,9 @@ QT_BEGIN_NAMESPACE
class Q_GUI_EXPORT QUrlResourceProvider
{
+ Q_DISABLE_COPY(QUrlResourceProvider)
public:
+ QUrlResourceProvider() = default;
virtual ~QUrlResourceProvider();
virtual QVariant resource(const QUrl &url) = 0;