More constexpr

This commit is contained in:
emeric
2022-11-19 13:07:45 +01:00
parent cd96b09cf0
commit a2b1199e87
3 changed files with 5 additions and 5 deletions
@@ -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 {};