diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-02-01 10:24:10 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-02-02 12:06:05 +0100 |
commit | bde773ec6a0d9319bd8cebf138513afd79c2eef7 (patch) | |
tree | 9cfb89a31d66b6f8849ad0e37d2aee9572cf6a67 /tests/shared | |
parent | fce101913313f7705831bb5de10dbbab46e5b3a0 (diff) |
Fix a few compiler warnings in tests
Change-Id: I22f6ac8ed02dd4ef4083ce3c781552623a0b08da
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/shared')
-rw-r--r-- | tests/shared/filesystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shared/filesystem.h b/tests/shared/filesystem.h index 76ebc485ff..03f2bb42fd 100644 --- a/tests/shared/filesystem.h +++ b/tests/shared/filesystem.h @@ -165,9 +165,9 @@ private: { if (m_temporaryDir.isValid()) { const QString absName = absoluteFilePath(fileName); - QScopedPointer<QFile> file(new QFile(absName)); + std::unique_ptr<QFile> file(new QFile(absName)); if (file->open(QIODevice::WriteOnly)) - return file.take(); + return file.release(); qWarning("Cannot open '%s' for writing: %s", qPrintable(absName), qPrintable(file->errorString())); } return 0; |