More constexpr
This commit is contained in:
@@ -112,7 +112,7 @@ class Artist : public Object<Artist, ArtistId>
|
||||
}
|
||||
|
||||
private:
|
||||
static const std::size_t _maxNameLength = 128;
|
||||
static constexpr std::size_t _maxNameLength {128};
|
||||
|
||||
friend class Session;
|
||||
// Create
|
||||
|
||||
@@ -134,7 +134,7 @@ class Release : public Object<Release, ReleaseId>
|
||||
Release(const std::string& name, const std::optional<UUID>& MBID = {});
|
||||
static pointer create(Session& session, const std::string& name, const std::optional<UUID>& MBID = {});
|
||||
|
||||
static const std::size_t _maxNameLength {128};
|
||||
static constexpr std::size_t _maxNameLength {128};
|
||||
|
||||
std::string _name;
|
||||
std::string _MBID;
|
||||
|
||||
@@ -207,9 +207,9 @@ class Track : public Object<Track, TrackId>
|
||||
Track(const std::filesystem::path& p);
|
||||
static pointer create(Session& session, const std::filesystem::path& p);
|
||||
|
||||
static const std::size_t _maxNameLength = 128;
|
||||
static const std::size_t _maxCopyrightLength = 128;
|
||||
static const std::size_t _maxCopyrightURLLength = 128;
|
||||
static constexpr std::size_t _maxNameLength {128};
|
||||
static constexpr std::size_t _maxCopyrightLength {128};
|
||||
static constexpr std::size_t _maxCopyrightURLLength {128};
|
||||
|
||||
int _scanVersion {};
|
||||
int _trackNumber {};
|
||||
|
||||
Reference in New Issue
Block a user