diff options
author | Logan Dethrow <log@lindenlab.com> | 2011-10-12 15:38:37 -0400 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2011-10-12 15:38:37 -0400 |
commit | e0f6e449594c44511d9634ea54faf54f8fe5cb7c (patch) | |
tree | 319483de50bd43bb1e5826292ffa883d613bbed9 | |
parent | ad3ffeed867145693500daf903c581b91b1dfcb5 (diff) |
Removed one ugly const_cast, the other one is needed for the time being.
-rw-r--r-- | indra/test/llsdmessagebuilder_tut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/test/llsdmessagebuilder_tut.cpp b/indra/test/llsdmessagebuilder_tut.cpp index 09100f59af..be0692557a 100644 --- a/indra/test/llsdmessagebuilder_tut.cpp +++ b/indra/test/llsdmessagebuilder_tut.cpp @@ -84,10 +84,10 @@ namespace tut static LLMessageBlock* defaultTemplateBlock(const EMsgVariableType type = MVT_NULL, const S32 size = 0, EMsgBlockType block = MBT_VARIABLE) { - return createTemplateBlock(const_cast<char*>(_PREHASH_Test0), type, size, block); + 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) |