summaryrefslogtreecommitdiff
path: root/indra/test/llsdmessagebuilder_tut.cpp
diff options
context:
space:
mode:
authorLogan Dethrow <log@lindenlab.com>2011-06-29 17:22:39 -0400
committerLogan Dethrow <log@lindenlab.com>2011-06-29 17:22:39 -0400
commit44d7267cd9bddfe0e5e382db5f1d5a83a832b6ff (patch)
tree60e54f9ac44662f2c3d272c7e1c474123b3958b0 /indra/test/llsdmessagebuilder_tut.cpp
parent2b05aeca410a421ae3d8fc78ede29c1933a86272 (diff)
Got indra/test to build. Fails to run due to missing .so files.
Diffstat (limited to 'indra/test/llsdmessagebuilder_tut.cpp')
-rw-r--r--indra/test/llsdmessagebuilder_tut.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/test/llsdmessagebuilder_tut.cpp b/indra/test/llsdmessagebuilder_tut.cpp
index cc6f78decd..09100f59af 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"
@@ -83,7 +84,7 @@ namespace tut
static LLMessageBlock* defaultTemplateBlock(const EMsgVariableType type = MVT_NULL, const S32 size = 0, EMsgBlockType block = MBT_VARIABLE)
{
- return createTemplateBlock(_PREHASH_Test0, type, size, block);
+ return createTemplateBlock(const_cast<char*>(_PREHASH_Test0), type, size, block);
}
static LLMessageBlock* createTemplateBlock(char* name, const EMsgVariableType type = MVT_NULL, const S32 size = 0, EMsgBlockType block = MBT_VARIABLE)
@@ -91,12 +92,12 @@ namespace tut
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);