From 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 13:30:53 +0300 Subject: warning fix --- protocols/Discord/src/utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Discord/src/utils.cpp') diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index bd21fbd48a..2c8deddc32 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -237,7 +237,7 @@ CMStringW PrepareMessageText(const JSONNode &pRoot) bDelimiterAdded = true; wszText.Append(L"\n-----------------"); } - wszText.AppendFormat(L"\n%s: %s", TranslateT("Attachment"), wszUrl); + wszText.AppendFormat(L"\n%s: %s", TranslateT("Attachment"), wszUrl.c_str()); } } @@ -248,19 +248,19 @@ CMStringW PrepareMessageText(const JSONNode &pRoot) wszText.Append(L"\n-----------------"); CMStringW str = p["url"].as_mstring(); - wszText.AppendFormat(L"\n%s: %s", TranslateT("Embed"), str); + wszText.AppendFormat(L"\n%s: %s", TranslateT("Embed"), str.c_str()); str = p["provider"]["name"].as_mstring() + L" " + p["type"].as_mstring(); if (str.GetLength() > 1) - wszText.AppendFormat(L"\n\t%s", str); + wszText.AppendFormat(L"\n\t%s", str.c_str()); str = p["description"].as_mstring(); if (!str.IsEmpty()) - wszText.AppendFormat(L"\n\t%s", str); + wszText.AppendFormat(L"\n\t%s", str.c_str()); str = p["thumbnail"]["url"].as_mstring(); if (!str.IsEmpty()) - wszText.AppendFormat(L"\n%s: %s", TranslateT("Preview"), str); + wszText.AppendFormat(L"\n%s: %s", TranslateT("Preview"), str.c_str()); } return wszText; -- cgit v1.2.3