Refactor GetNonTerminatedText into GetText in StringView

This commit is contained in:
Wojciech Figat
2022-10-26 15:59:03 +02:00
parent 0dec70847f
commit 5c270810d0
4 changed files with 18 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ void WindowsClipboard::SetText(const StringView& text)
const HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, sizeWithoutNull + sizeof(Char));
Char* pMem = static_cast<Char*>(GlobalLock(hMem));
Platform::MemoryCopy(pMem, text.GetNonTerminatedText(), sizeWithoutNull);
Platform::MemoryCopy(pMem, text.GetText(), sizeWithoutNull);
Platform::MemorySet(pMem + text.Length(), sizeof(Char), 0);
GlobalUnlock(hMem);