summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp b/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
index 123cb7b32..a04a1ac6f 100644
--- a/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
+++ b/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp
@@ -226,12 +226,6 @@ public:
setOpenMode(QIODevice::ReadOnly);
m_timer.start(100, this);
}
- void close() override
- {
- QMutexLocker lock(&m_mutex);
- QIODevice::close();
- deleteLater();
- }
bool isSequential() const override { return true; }
qint64 bytesAvailable() const override
{
@@ -292,7 +286,7 @@ public:
void requestStarted(QWebEngineUrlRequestJob *job)
{
- job->reply("text/plain;charset=utf-8", new StreamingIODevice(this));
+ job->reply("text/plain;charset=utf-8", new StreamingIODevice(job));
}
};