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/gfxinit.cpp | |
parent | e07efc2370b0c846f792a4f5d3f8695c21895583 (diff) | |
download | openttd-114d48e492cc38644c0c020c6a30ab6c57179862.tar.xz |
(svn r17596) -Codechange: constify some tables
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r-- | src/gfxinit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index e20204bcb..1a722a9a8 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -252,11 +252,11 @@ MD5File::ChecksumResult MD5File::CheckMD5() const } /** Names corresponding to the GraphicsFileType */ -const char *_graphics_file_names[] = { "base", "logos", "arctic", "tropical", "toyland", "extra" }; +static const char * const _graphics_file_names[] = { "base", "logos", "arctic", "tropical", "toyland", "extra" }; /** Implementation */ template <class T, size_t Tnum_files> -/* static */ const char **BaseSet<T, Tnum_files>::file_names = _graphics_file_names; +/* static */ const char * const *BaseSet<T, Tnum_files>::file_names = _graphics_file_names; extern void UpdateNewGRFConfigPalette(); |