X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fytsinglevideosource.cpp;h=09936cad8f1a541deb831f31331c4e45f351219c;hb=8cea1b650a0122369e8a3d60da1f263767b67614;hp=e7bf33e2168f9d6d09b426e873a5a1a50863d9fe;hpb=f7c2427db0b00cbb4dadd75420ce60aee8e0d490;p=minitube diff --git a/src/ytsinglevideosource.cpp b/src/ytsinglevideosource.cpp index e7bf33e..09936ca 100644 --- a/src/ytsinglevideosource.cpp +++ b/src/ytsinglevideosource.cpp @@ -26,10 +26,8 @@ $END_LICENSE */ #include "yt3.h" #include "yt3listparser.h" -YTSingleVideoSource::YTSingleVideoSource(QObject *parent) : PaginatedVideoSource(parent), - video(0), - startIndex(0), - max(0) { } +YTSingleVideoSource::YTSingleVideoSource(QObject *parent) + : PaginatedVideoSource(parent), video(nullptr), startIndex(0), max(0) {} void YTSingleVideoSource::loadVideos(int max, int startIndex) { aborted = false; @@ -39,9 +37,8 @@ void YTSingleVideoSource::loadVideos(int max, int startIndex) { QUrl url; if (startIndex == 1) { - if (video) { - QVector videos; + QVector