summaryrefslogtreecommitdiffstats
path: root/src/sources/soundsource.h
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-01-18 00:11:41 +0100
committerUwe Klotz <uwe_klotz@web.de>2017-01-18 00:11:41 +0100
commit044b682d87edea58d3ae801098bff66cf334fa40 (patch)
treed82c7e36fd22916f28c0fee9212adf8ee6bb6e5d /src/sources/soundsource.h
parent5f1a20c557c0d609e231f86adf907fde213b23e3 (diff)
Replace some QSharedPointer with std::shared_ptr
Diffstat (limited to 'src/sources/soundsource.h')
-rw-r--r--src/sources/soundsource.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sources/soundsource.h b/src/sources/soundsource.h
index 0dcbebf683..209e7a5c60 100644
--- a/src/sources/soundsource.h
+++ b/src/sources/soundsource.h
@@ -75,11 +75,11 @@ private:
const QString m_type;
};
-typedef QSharedPointer<SoundSource> SoundSourcePointer;
+typedef std::shared_ptr<SoundSource> SoundSourcePointer;
template<typename T>
SoundSourcePointer newSoundSourceFromUrl(const QUrl& url) {
- return SoundSourcePointer(new T(url));
+ return std::make_shared<T>(url);
}
} //namespace mixxx