From df315edf337bc7c25c198ce915add3b13edbab73 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 17 Sep 2021 19:11:45 +0800 Subject: [PATCH] Fix ucstring merge --- ryzom/client/src/interface_v3/chat_text_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryzom/client/src/interface_v3/chat_text_manager.cpp b/ryzom/client/src/interface_v3/chat_text_manager.cpp index 7c2e6938a..2d68d484f 100644 --- a/ryzom/client/src/interface_v3/chat_text_manager.cpp +++ b/ryzom/client/src/interface_v3/chat_text_manager.cpp @@ -427,8 +427,8 @@ CViewBase *CChatTextManager::createMsgTextComplex(const string &msg, NLMISC::CRG CCDBNodeLeaf *node= NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:CHAT:SHOW_TRANSLATION_ONLY_AS_TOOLTIP_CB", false); bool originalFirst = node ? node->getValueBool() : true; - string::size_type startTr = msg.find(ucstring("{:")); - string::size_type endOfOriginal = msg.find(ucstring("}@{")); + string::size_type startTr = msg.find("{:"); + string::size_type endOfOriginal = msg.find("}@{"); // Original/Translated case, example: {:enHello the world!}@{ Bonjour le monde ! if (startTr != string::npos && endOfOriginal != string::npos)