diff --git a/indra/llui/llchatentry.cpp b/indra/llui/llchatentry.cpp index eea5ef99bf..f93d05aafb 100755 --- a/indra/llui/llchatentry.cpp +++ b/indra/llui/llchatentry.cpp @@ -280,7 +280,7 @@ void LLChatEntry::paste() { S32 cursor_pos = getCursorPos(); LLWString content = getWText(); - LLWStringUtil::replaceChar(content, '\n', 182); + LLWStringUtil::replaceChar(content, '\n', llwchar(182)); setWText(content); setCursorPos(cursor_pos); } diff --git a/indra/newview/fsfloaterim.cpp b/indra/newview/fsfloaterim.cpp index 6b9ffd2f8e..18cca7e709 100644 --- a/indra/newview/fsfloaterim.cpp +++ b/indra/newview/fsfloaterim.cpp @@ -1787,7 +1787,8 @@ BOOL FSFloaterIM::handleKeyHere( KEY key, MASK mask ) } else { - mInputEditor->insertText(LLWString(1, llwchar(182))); + LLWString line_break(1, llwchar(182)); + mInputEditor->insertText(line_break); } } diff --git a/indra/newview/fsfloaternearbychat.cpp b/indra/newview/fsfloaternearbychat.cpp index c7cc04cd76..9247e4e438 100644 --- a/indra/newview/fsfloaternearbychat.cpp +++ b/indra/newview/fsfloaternearbychat.cpp @@ -729,7 +729,8 @@ BOOL FSFloaterNearbyChat::handleKeyHere( KEY key, MASK mask ) } else { - mInputEditor->insertText(LLWString(1, llwchar(182))); + LLWString line_break(1, llwchar(182)); + mInputEditor->insertText(line_break); } }