summaryrefslogtreecommitdiff
path: root/src/multimedia/playback
diff options
context:
space:
mode:
authorSergio Martins <iamsergio@gmail.com>2016-02-29 23:48:18 +0000
committerSérgio Martins <iamsergio@gmail.com>2016-03-02 09:28:42 +0000
commit0591c7f1f98ce685af70e516a8ee9c0c42854bbb (patch)
tree1b1d308f2c7e2750105335b523cc3cda4579adaa /src/multimedia/playback
parent12865c0a2c49596ea22f7e755a672093281978e6 (diff)
downloadqtmultimedia-0591c7f1f98ce685af70e516a8ee9c0c42854bbb.tar.gz
Pass by QUrl by const-ref, it's non-trivial.
[-Wclazy-function-args-by-ref] Change-Id: Iac68ca2d3d53951190db6d24ebbbcb60e8bbd789 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/multimedia/playback')
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index afea8e147..f52041e5f 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -142,7 +142,7 @@ public:
QMediaContent rootMedia;
QMediaContent pendingPlaylist;
QMediaPlaylist *parentPlaylist(QMediaPlaylist *pls);
- bool isInChain(QUrl url);
+ bool isInChain(const QUrl &url);
int nestedPlaylists;
void setMedia(const QMediaContent &media, QIODevice *stream = 0);
@@ -175,7 +175,7 @@ QMediaPlaylist *QMediaPlayerPrivate::parentPlaylist(QMediaPlaylist *pls)
return 0;
}
-bool QMediaPlayerPrivate::isInChain(QUrl url)
+bool QMediaPlayerPrivate::isInChain(const QUrl &url)
{
// Check whether a URL is already in the chain of playlists.
// Also see a comment in parentPlaylist().