summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-07-21 12:07:57 +0200
committerMarc Mutz <marc.mutz@kdab.com>2017-08-08 11:28:26 +0000
commit116cd7bdbd1e148aef05c27602780d65be335205 (patch)
treeeb6480feaa6a1fe61efdb07816863983b45e1386 /tests
parenteed32d94de9faca7380f7497e7ab0d119ef3cf5c (diff)
Use QSharedPointer::create() more
This is the result of running the (experimental) clang-tidy check qt-modernize-qsharedpointer-create Discarded changes: none. This run probably does not cover all of qtmultimedia. Change-Id: I86a51b6a1edfe254f3fa9bff12dda359ac413df0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qaudioinput/tst_qaudioinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/integration/qaudioinput/tst_qaudioinput.cpp b/tests/auto/integration/qaudioinput/tst_qaudioinput.cpp
index 8463149db..14023f229 100644
--- a/tests/auto/integration/qaudioinput/tst_qaudioinput.cpp
+++ b/tests/auto/integration/qaudioinput/tst_qaudioinput.cpp
@@ -222,7 +222,7 @@ void tst_QAudioInput::initTestCase()
const QString temporaryAudioPath = m_temporaryDir->path() + slash;
foreach (const QAudioFormat &format, testFormats) {
const QString fileName = temporaryAudioPath + formatToFileName(format) + QStringLiteral(".wav");
- audioFiles.append(FilePtr(new QFile(fileName)));
+ audioFiles.append(FilePtr::create(fileName));
}
qgetenv("QT_TEST_CI").toInt(&m_inCISystem,10);
}