bumped some internal size limits for names.fixes #408

This commit is contained in:
emeric
2024-01-26 23:06:02 +01:00
parent ec84411cad
commit 710942ac78
3 changed files with 5 additions and 5 deletions
@@ -121,7 +121,7 @@ namespace Database
}
private:
static constexpr std::size_t _maxNameLength{ 128 };
static constexpr std::size_t _maxNameLength{ 256 };
friend class Session;
// Create
@@ -188,7 +188,7 @@ namespace Database
Wt::WDate getDate(bool original) const;
std::optional<int> getYear(bool original) const;
static constexpr std::size_t _maxNameLength{ 128 };
static constexpr std::size_t _maxNameLength{ 256 };
std::string _name;
std::string _MBID;
+3 -3
View File
@@ -225,9 +225,9 @@ namespace Database {
Track(const std::filesystem::path& p);
static pointer create(Session& session, const std::filesystem::path& p);
static constexpr std::size_t _maxNameLength{ 128 };
static constexpr std::size_t _maxCopyrightLength{ 128 };
static constexpr std::size_t _maxCopyrightURLLength{ 128 };
static constexpr std::size_t _maxNameLength{ 256 };
static constexpr std::size_t _maxCopyrightLength{ 256 };
static constexpr std::size_t _maxCopyrightURLLength{ 256 };
int _scanVersion{};
std::optional<int> _trackNumber{};