Change `constexpr` to `const`
This commit is contained in:
parent
157de12bdf
commit
3a4199240e
|
@ -57,10 +57,12 @@
|
||||||
#include "settings/settingsdialog.h"
|
#include "settings/settingsdialog.h"
|
||||||
#include "settings/qobuzsettingspage.h"
|
#include "settings/qobuzsettingspage.h"
|
||||||
|
|
||||||
constexpr Song::Source QobuzService::kSource = Song::Source_Qobuz;
|
const Song::Source QobuzService::kSource = Song::Source_Qobuz;
|
||||||
|
const char QobuzService::kApiUrl[] = "https://www.qobuz.com/api.json/0.2";
|
||||||
|
|
||||||
constexpr char QobuzService::kAuthUrl[] = "https://www.qobuz.com/api.json/0.2/user/login";
|
constexpr char QobuzService::kAuthUrl[] = "https://www.qobuz.com/api.json/0.2/user/login";
|
||||||
constexpr char QobuzService::kApiUrl[] = "https://www.qobuz.com/api.json/0.2";
|
|
||||||
constexpr int QobuzService::kLoginAttempts = 2;
|
const int QobuzService::kLoginAttempts = 2;
|
||||||
constexpr int QobuzService::kTimeResetLoginAttempts = 60000;
|
constexpr int QobuzService::kTimeResetLoginAttempts = 60000;
|
||||||
|
|
||||||
constexpr char QobuzService::kArtistsSongsTable[] = "qobuz_artists_songs";
|
constexpr char QobuzService::kArtistsSongsTable[] = "qobuz_artists_songs";
|
||||||
|
|
|
@ -61,14 +61,17 @@
|
||||||
#include "settings/settingsdialog.h"
|
#include "settings/settingsdialog.h"
|
||||||
#include "settings/tidalsettingspage.h"
|
#include "settings/tidalsettingspage.h"
|
||||||
|
|
||||||
constexpr Song::Source TidalService::kSource = Song::Source_Tidal;
|
const Song::Source TidalService::kSource = Song::Source_Tidal;
|
||||||
|
|
||||||
|
const char TidalService::kApiUrl[] = "https://api.tidalhifi.com/v1";
|
||||||
|
const char TidalService::kResourcesUrl[] = "https://resources.tidal.com";
|
||||||
|
|
||||||
constexpr char TidalService::kOAuthUrl[] = "https://login.tidal.com/authorize";
|
constexpr char TidalService::kOAuthUrl[] = "https://login.tidal.com/authorize";
|
||||||
constexpr char TidalService::kOAuthAccessTokenUrl[] = "https://login.tidal.com/oauth2/token";
|
constexpr char TidalService::kOAuthAccessTokenUrl[] = "https://login.tidal.com/oauth2/token";
|
||||||
constexpr char TidalService::kOAuthRedirectUrl[] = "tidal://login/auth";
|
constexpr char TidalService::kOAuthRedirectUrl[] = "tidal://login/auth";
|
||||||
constexpr char TidalService::kAuthUrl[] = "https://api.tidalhifi.com/v1/login/username";
|
constexpr char TidalService::kAuthUrl[] = "https://api.tidalhifi.com/v1/login/username";
|
||||||
constexpr char TidalService::kApiUrl[] = "https://api.tidalhifi.com/v1";
|
|
||||||
constexpr char TidalService::kResourcesUrl[] = "https://resources.tidal.com";
|
const int TidalService::kLoginAttempts = 2;
|
||||||
constexpr int TidalService::kLoginAttempts = 2;
|
|
||||||
constexpr int TidalService::kTimeResetLoginAttempts = 60000;
|
constexpr int TidalService::kTimeResetLoginAttempts = 60000;
|
||||||
|
|
||||||
constexpr char TidalService::kArtistsSongsTable[] = "tidal_artists_songs";
|
constexpr char TidalService::kArtistsSongsTable[] = "tidal_artists_songs";
|
||||||
|
|
Loading…
Reference in New Issue