Change `constexpr` to `const`

This commit is contained in:
Jonas Kvinge 2022-11-27 03:11:57 +01:00
parent 157de12bdf
commit 3a4199240e
2 changed files with 12 additions and 7 deletions

View File

@ -57,10 +57,12 @@
#include "settings/settingsdialog.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::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 char QobuzService::kArtistsSongsTable[] = "qobuz_artists_songs";

View File

@ -61,14 +61,17 @@
#include "settings/settingsdialog.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::kOAuthAccessTokenUrl[] = "https://login.tidal.com/oauth2/token";
constexpr char TidalService::kOAuthRedirectUrl[] = "tidal://login/auth";
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";
constexpr int TidalService::kLoginAttempts = 2;
const int TidalService::kLoginAttempts = 2;
constexpr int TidalService::kTimeResetLoginAttempts = 60000;
constexpr char TidalService::kArtistsSongsTable[] = "tidal_artists_songs";