mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
add missing const
Avoids using a non const global variable. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
c6f1e2750e
commit
07eb81e88a
@ -31,7 +31,7 @@
|
||||
|
||||
using namespace TagLib;
|
||||
|
||||
const char *MP4::Atom::containers[11] = {
|
||||
const char *const MP4::Atom::containers[11] = {
|
||||
"moov", "udta", "mdia", "meta", "ilst",
|
||||
"stbl", "minf", "moof", "traf", "trak",
|
||||
"stsd"
|
||||
|
@ -88,7 +88,7 @@ namespace TagLib {
|
||||
AtomList children;
|
||||
private:
|
||||
static const int numContainers = 11;
|
||||
static const char *containers[11];
|
||||
static const char *const containers[11];
|
||||
};
|
||||
|
||||
//! Root-level atoms
|
||||
|
@ -29,7 +29,7 @@ using namespace TagLib;
|
||||
|
||||
namespace
|
||||
{
|
||||
const wchar_t *genres[] = {
|
||||
const wchar_t *const genres[] = {
|
||||
L"Blues",
|
||||
L"Classic Rock",
|
||||
L"Country",
|
||||
|
Loading…
x
Reference in New Issue
Block a user