diff options
Diffstat (limited to 'linden/indra/llcommon/llmortician.cpp')
-rw-r--r-- | linden/indra/llcommon/llmortician.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llcommon/llmortician.cpp b/linden/indra/llcommon/llmortician.cpp index 9341dc1..4d449ff 100644 --- a/linden/indra/llcommon/llmortician.cpp +++ b/linden/indra/llcommon/llmortician.cpp | |||
@@ -11,12 +11,12 @@ | |||
11 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
12 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 12 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
14 | * online at http://secondlife.com/developers/opensource/gplv2 | 14 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
15 | * | 15 | * |
16 | * There are special exceptions to the terms and conditions of the GPL as | 16 | * There are special exceptions to the terms and conditions of the GPL as |
17 | * it is applied to this Source Code. View the full text of the exception | 17 | * it is applied to this Source Code. View the full text of the exception |
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 18 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
19 | * online at http://secondlife.com/developers/opensource/flossexception | 19 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
20 | * | 20 | * |
21 | * By copying, modifying or distributing this software, you acknowledge | 21 | * By copying, modifying or distributing this software, you acknowledge |
22 | * that you have read and understood your obligations described above, | 22 | * that you have read and understood your obligations described above, |
@@ -33,20 +33,20 @@ | |||
33 | 33 | ||
34 | #include <list> | 34 | #include <list> |
35 | 35 | ||
36 | std::list<LLMortician*> gGraveyard; | 36 | std::list<LLMortician*> LLMortician::sGraveyard; |
37 | 37 | ||
38 | BOOL LLMortician::sDestroyImmediate = FALSE; | 38 | BOOL LLMortician::sDestroyImmediate = FALSE; |
39 | 39 | ||
40 | LLMortician::~LLMortician() | 40 | LLMortician::~LLMortician() |
41 | { | 41 | { |
42 | gGraveyard.remove(this); | 42 | sGraveyard.remove(this); |
43 | } | 43 | } |
44 | 44 | ||
45 | void LLMortician::updateClass() | 45 | void LLMortician::updateClass() |
46 | { | 46 | { |
47 | while (!gGraveyard.empty()) | 47 | while (!sGraveyard.empty()) |
48 | { | 48 | { |
49 | LLMortician* dead = gGraveyard.front(); | 49 | LLMortician* dead = sGraveyard.front(); |
50 | delete dead; | 50 | delete dead; |
51 | } | 51 | } |
52 | } | 52 | } |
@@ -56,7 +56,7 @@ void LLMortician::die() | |||
56 | // It is valid to call die() more than once on something that hasn't died yet | 56 | // It is valid to call die() more than once on something that hasn't died yet |
57 | if (sDestroyImmediate) | 57 | if (sDestroyImmediate) |
58 | { | 58 | { |
59 | // *NOTE: This is a hack to ensure destruction order on shutdown. | 59 | // *NOTE: This is a hack to ensure destruction order on shutdown (relative to non-mortician controlled classes). |
60 | mIsDead = TRUE; | 60 | mIsDead = TRUE; |
61 | delete this; | 61 | delete this; |
62 | return; | 62 | return; |
@@ -64,7 +64,7 @@ void LLMortician::die() | |||
64 | else if (!mIsDead) | 64 | else if (!mIsDead) |
65 | { | 65 | { |
66 | mIsDead = TRUE; | 66 | mIsDead = TRUE; |
67 | gGraveyard.push_back(this); | 67 | sGraveyard.push_back(this); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||