mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix MSVC compiler warnings (#10197)
This commit is contained in:
parent
47948793c1
commit
3c2890692b
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue