From 332b1091b402ed18f67ab45e154490ec436dcce5 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 24 Mar 2013 02:35:29 +0000 Subject: [PATCH] - Make FName::NameManager::Inited a static member variable. SVN r4204 (trunk) --- src/name.cpp | 1 + src/name.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/name.cpp b/src/name.cpp index c0d14b51e3..36cce25955 100644 --- a/src/name.cpp +++ b/src/name.cpp @@ -65,6 +65,7 @@ struct FName::NameManager::NameBlock // PRIVATE DATA DEFINITIONS ------------------------------------------------ FName::NameManager FName::NameData; +bool FName::NameManager::Inited; // Define the predefined names. static const char *PredefinedNames[] = diff --git a/src/name.h b/src/name.h index fa161ab2e8..3e2eaf4bba 100644 --- a/src/name.h +++ b/src/name.h @@ -116,7 +116,7 @@ protected: int AddName (const char *text, unsigned int hash, unsigned int bucket); NameBlock *AddBlock (size_t len); void InitBuckets (); - bool Inited; + static bool Inited; }; static NameManager NameData;