Add missing const
This commit is contained in:
@@ -71,13 +71,13 @@ class SpotifyBaseRequest : public QObject {
|
||||
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
||||
static QString ErrorsToHTML(const QStringList &errors);
|
||||
|
||||
int artistssearchlimit() { return service_->artistssearchlimit(); }
|
||||
int albumssearchlimit() { return service_->albumssearchlimit(); }
|
||||
int songssearchlimit() { return service_->songssearchlimit(); }
|
||||
int artistssearchlimit() const { return service_->artistssearchlimit(); }
|
||||
int albumssearchlimit() const { return service_->albumssearchlimit(); }
|
||||
int songssearchlimit() const { return service_->songssearchlimit(); }
|
||||
|
||||
QString access_token() { return service_->access_token(); }
|
||||
QString access_token() const { return service_->access_token(); }
|
||||
|
||||
bool authenticated() { return service_->authenticated(); }
|
||||
bool authenticated() const { return service_->authenticated(); }
|
||||
|
||||
private slots:
|
||||
void HandleSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
|
||||
@@ -73,13 +73,13 @@ class SpotifyService : public StreamingService {
|
||||
|
||||
Application *app() { return app_; }
|
||||
|
||||
int artistssearchlimit() { return artistssearchlimit_; }
|
||||
int albumssearchlimit() { return albumssearchlimit_; }
|
||||
int songssearchlimit() { return songssearchlimit_; }
|
||||
bool fetchalbums() { return fetchalbums_; }
|
||||
bool download_album_covers() { return download_album_covers_; }
|
||||
int artistssearchlimit() const { return artistssearchlimit_; }
|
||||
int albumssearchlimit() const { return albumssearchlimit_; }
|
||||
int songssearchlimit() const { return songssearchlimit_; }
|
||||
bool fetchalbums() const { return fetchalbums_; }
|
||||
bool download_album_covers() const { return download_album_covers_; }
|
||||
|
||||
QString access_token() { return access_token_; }
|
||||
QString access_token() const { return access_token_; }
|
||||
|
||||
bool authenticated() const override { return !access_token_.isEmpty(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user