From c841a78f69370c2bf806cbe6c89b58ed8efc0bac Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 22 Apr 2012 16:28:19 +0000 Subject: (svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount() --- src/newgrf_class_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_class_func.h') diff --git a/src/newgrf_class_func.h b/src/newgrf_class_func.h index 03c82a8d6..9bcb6b3c9 100644 --- a/src/newgrf_class_func.h +++ b/src/newgrf_class_func.h @@ -109,7 +109,7 @@ NewGRFClass *NewGRFClass::Get(Tid cls_id) * Get the number of allocated classes. * @return The number of classes. */ -DEFINE_NEWGRF_CLASS_METHOD(uint)::GetCount() +DEFINE_NEWGRF_CLASS_METHOD(uint)::GetClassCount() { uint i; for (i = 0; i < Tmax && classes[i].global_id != 0; i++) {} @@ -162,6 +162,6 @@ DEFINE_NEWGRF_CLASS_METHOD(const Tspec *)::GetByGrf(uint32 grfid, byte local_id, template void name::Insert(Tspec *spec); \ template void name::Assign(Tspec *spec); \ template NewGRFClass *name::Get(Tid cls_id); \ - template uint name::GetCount(); \ + template uint name::GetClassCount(); \ template const Tspec *name::GetSpec(uint index) const; \ template const Tspec *name::GetByGrf(uint32 grfid, byte localidx, int *index); -- cgit v1.2.3-70-g09d2