aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessagetemplate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llmessagetemplate.cpp')
-rw-r--r--linden/indra/llmessage/llmessagetemplate.cpp32
1 files changed, 30 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llmessagetemplate.cpp b/linden/indra/llmessage/llmessagetemplate.cpp
index 026843d..daf7f7a 100644
--- a/linden/indra/llmessage/llmessagetemplate.cpp
+++ b/linden/indra/llmessage/llmessagetemplate.cpp
@@ -1,3 +1,31 @@
1/**
2 * @file llmessagetemplate.cpp
3 * @brief Implementation of message template classes.
4 *
5 * Copyright (c) 2007-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
1#include "linden_common.h" 29#include "linden_common.h"
2 30
3#include "llmessagetemplate.h" 31#include "llmessagetemplate.h"
@@ -94,7 +122,7 @@ std::ostream& operator<<(std::ostream& s, LLMessageBlock &msg)
94 for (LLMessageBlock::message_variable_map_t::iterator iter = msg.mMemberVariables.begin(); 122 for (LLMessageBlock::message_variable_map_t::iterator iter = msg.mMemberVariables.begin();
95 iter != msg.mMemberVariables.end(); iter++) 123 iter != msg.mMemberVariables.end(); iter++)
96 { 124 {
97 LLMessageVariable& ci = *(iter->second); 125 LLMessageVariable& ci = *(*iter);
98 s << ci; 126 s << ci;
99 } 127 }
100 128
@@ -138,7 +166,7 @@ std::ostream& operator<<(std::ostream& s, LLMessageTemplate &msg)
138 for (LLMessageTemplate::message_block_map_t::iterator iter = msg.mMemberBlocks.begin(); 166 for (LLMessageTemplate::message_block_map_t::iterator iter = msg.mMemberBlocks.begin();
139 iter != msg.mMemberBlocks.end(); iter++) 167 iter != msg.mMemberBlocks.end(); iter++)
140 { 168 {
141 LLMessageBlock* ci = iter->second; 169 LLMessageBlock* ci = *iter;
142 s << *ci; 170 s << *ci;
143 } 171 }
144 172