diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
commit | 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 (patch) | |
tree | 035f7a89aeeb3cf07c9d45e495a5ec9fbf3b1d41 /protocols/Discord/src/utils.cpp | |
parent | b6330f119c9f253d470dac46b20335811a8e0676 (diff) |
warning fix
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; |