Fix string-init compile error (g++ 4.4) in llurlentry_stub.cpp.

Newer C++ compilers produce a (fatal) warning when you try to initialize a
(non-const) char* variable with a string literal: you're supposed to capture
such data in a const char*. But as this module is resolving external
references declared in ancient message-system headers, we don't have the
option to fix the original declaration. Instead use
char* _PREHASH_Foo = const_cast<char*>("string literal"); // sigh
meow-7.2.2
Nat Goodspeed 2011-02-01 17:35:42 -05:00
parent 66083f9e7a
commit 409c59b70d
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ LLFontGL* LLFontGL::getFontDefault()
return NULL;
}
char* _PREHASH_AgentData = "AgentData";
char* _PREHASH_AgentID = "AgentID";
char* _PREHASH_AgentData = const_cast<char*>("AgentData");
char* _PREHASH_AgentID = const_cast<char*>("AgentID");
LLHost LLHost::invalid(INVALID_PORT,INVALID_HOST_IP_ADDRESS);