Core/Utils: some code style adjustments, 6d6077e follow-up
This commit is contained in:
1 parent
3ab2d9575e
commit
cd3fa07389
2 files changed
+11
-11
No files matched your search
@@ -286,9 +286,9 @@ bool Utf8toWStr(char const* utf8str, size_t csize, wchar_t* wstr, size_t& wsize)
|
||||
{
|
||||
try
|
||||
{
|
||||
Trinity::BufferWriteGuard<wchar_t> guard(wstr, wsize);
|
||||
guard = utf8::utf8to16(utf8str, utf8str + csize, guard);
|
||||
wsize -= guard.size(); // remaining unused space
|
||||
Trinity::CheckedBufferOutputIterator<wchar_t> out(wstr, wsize);
|
||||
out = utf8::utf8to16(utf8str, utf8str + csize, out);
|
||||
wsize -= out.remaining(); // remaining unused space
|
||||
wstr[wsize] = L'\0';
|
||||
}
|
||||
catch (std::exception)
|
||||
|
||||
Reference in new issue
Block a user