aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiChatConsole.cpp
diff options
context:
space:
mode:
authoradrido <robots_only_adrido@gmx.com>2020-08-23 15:41:04 +0200
committerGitHub <noreply@github.com>2020-08-23 15:41:04 +0200
commit3c2890692bb4c292023a8260cf9ce70f82b2e780 (patch)
treeeae073fc93ccf87a990ed3b85764ef9c93dea098 /src/gui/guiChatConsole.cpp
parent47948793c16fc293c1d6b4ccee05421bc0864360 (diff)
downloadminetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.tar.gz
minetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.tar.bz2
minetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.zip
Fix MSVC compiler warnings (#10197)
Diffstat (limited to 'src/gui/guiChatConsole.cpp')
-rw-r--r--src/gui/guiChatConsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiChatConsole.cpp b/src/gui/guiChatConsole.cpp
index 8de00c12f..575c6ab25 100644
--- a/src/gui/guiChatConsole.cpp
+++ b/src/gui/guiChatConsole.cpp
@@ -545,7 +545,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
if (prompt.getCursorLength() <= 0)
return true;
std::wstring wselected = prompt.getSelection();
- std::string selected(wselected.begin(), wselected.end());
+ std::string selected = wide_to_utf8(wselected);
Environment->getOSOperator()->copyToClipboard(selected.c_str());
return true;
}
@@ -575,7 +575,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
if (prompt.getCursorLength() <= 0)
return true;
std::wstring wselected = prompt.getSelection();
- std::string selected(wselected.begin(), wselected.end());
+ std::string selected = wide_to_utf8(wselected);
Environment->getOSOperator()->copyToClipboard(selected.c_str());
prompt.cursorOperation(
ChatPrompt::CURSOROP_DELETE,