diff options
author | Oz Linden <oz@lindenlab.com> | 2011-11-23 12:49:02 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-11-23 12:49:02 -0500 |
commit | d7d779f8aa841b5550d4049dd65c097a3c267f3d (patch) | |
tree | fa2e38f1eb82428c8e77a4aa2c3e1dcdf6295763 /indra/test/llsdmessagebuilder_tut.cpp | |
parent | 039417fc7dace6ba4b1f13de93f76b9749b26d41 (diff) | |
parent | 3212b741663e3cb8608bb432623968c568e626b5 (diff) |
merge changes for vmrg-190
Diffstat (limited to 'indra/test/llsdmessagebuilder_tut.cpp')
-rw-r--r-- | indra/test/llsdmessagebuilder_tut.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/test/llsdmessagebuilder_tut.cpp b/indra/test/llsdmessagebuilder_tut.cpp index cc6f78decd..be0692557a 100644 --- a/indra/test/llsdmessagebuilder_tut.cpp +++ b/indra/test/llsdmessagebuilder_tut.cpp @@ -33,6 +33,7 @@ #include "llsdmessagebuilder.h" #include "llsdmessagereader.h" #include "llsdtraits.h" +#include "llmath.h" #include "llquaternion.h" #include "u64.h" #include "v3dmath.h" @@ -86,17 +87,17 @@ namespace tut return createTemplateBlock(_PREHASH_Test0, type, size, block); } - static LLMessageBlock* createTemplateBlock(char* name, const EMsgVariableType type = MVT_NULL, const S32 size = 0, EMsgBlockType block = MBT_VARIABLE) + static LLMessageBlock* createTemplateBlock(const char* name, const EMsgVariableType type = MVT_NULL, const S32 size = 0, EMsgBlockType block = MBT_VARIABLE) { LLMessageBlock* result = new LLMessageBlock(name, block); if(type != MVT_NULL) { - result->addVariable(_PREHASH_Test0, type, size); + result->addVariable(const_cast<char*>(_PREHASH_Test0), type, size); } return result; } - static LLTemplateMessageBuilder* defaultTemplateBuilder(LLMessageTemplate& messageTemplate, char* name = _PREHASH_Test0) + static LLTemplateMessageBuilder* defaultTemplateBuilder(LLMessageTemplate& messageTemplate, char* name = const_cast<char*>(_PREHASH_Test0)) { templateNameMap[_PREHASH_TestMessage] = &messageTemplate; LLTemplateMessageBuilder* builder = new LLTemplateMessageBuilder(templateNameMap); |