diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-01-21 15:29:27 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-01-21 20:31:42 +0100 |
commit | bcef3ed107c6a4b556c4409dde82accd078e6eae (patch) | |
tree | d27ae8ec0e269989d993f98c5f23f1efac24f4b7 /src/track/trackmetadata.h | |
parent | cff08a161d1c4304c4e5f162410d600d74f60072 (diff) |
Replace const with constexpr
Diffstat (limited to 'src/track/trackmetadata.h')
-rw-r--r-- | src/track/trackmetadata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/track/trackmetadata.h b/src/track/trackmetadata.h index 65ff9c5111..f87af06eb6 100644 --- a/src/track/trackmetadata.h +++ b/src/track/trackmetadata.h @@ -9,7 +9,7 @@ namespace mixxx { // DTO for track metadata properties. Must not be subclassed (no virtual destructor)! -class TrackMetadata { +class TrackMetadata final { public: TrackMetadata(); @@ -165,7 +165,7 @@ public: } // Parse and format the calendar year (for simplified display) - static const int kCalendarYearInvalid; + static constexpr int kCalendarYearInvalid = 0; static int parseCalendarYear(QString year, bool* pValid = 0); static QString formatCalendarYear(QString year, bool* pValid = 0); |