diff options
author | smatz <smatz@openttd.org> | 2009-09-20 23:11:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-20 23:11:01 +0000 |
commit | 114d48e492cc38644c0c020c6a30ab6c57179862 (patch) | |
tree | 80044362459c1f30b75b8eb8d9020f318d3ce5fb /src/sound.cpp | |
parent | e07efc2370b0c846f792a4f5d3f8695c21895583 (diff) | |
download | openttd-114d48e492cc38644c0c020c6a30ab6c57179862.tar.xz |
(svn r17596) -Codechange: constify some tables
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 10d48d0c3..80eb8f2ea 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -271,11 +271,11 @@ void SndPlayFx(SoundID sound) INSTANTIATE_BASE_MEDIA_METHODS(BaseMedia<SoundsSet>, SoundsSet) /** Names corresponding to the sound set's files */ -const char *_sound_file_names[] = { "samples" }; +static const char * const _sound_file_names[] = { "samples" }; template <class T, size_t Tnum_files> -/* static */ const char **BaseSet<T, Tnum_files>::file_names = _sound_file_names; +/* static */ const char * const *BaseSet<T, Tnum_files>::file_names = _sound_file_names; template <class Tbase_set> /* static */ const char *BaseMedia<Tbase_set>::GetExtension() |