From 3c8d5c8f732239a8b50418be27464e30b9dddeae Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 08:37:30 +0800 Subject: Exception remove string. --- src/base/platform/win/Win32FileStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/platform/win/Win32FileStream.cpp') diff --git a/src/base/platform/win/Win32FileStream.cpp b/src/base/platform/win/Win32FileStream.cpp index f3809b3e..341fe9d3 100644 --- a/src/base/platform/win/Win32FileStream.cpp +++ b/src/base/platform/win/Win32FileStream.cpp @@ -29,7 +29,7 @@ Win32FileStream::Win32FileStream(String path, OpenFileFlag flags) if (flags & io::OpenFileFlags::Write) { grfMode |= STGM_WRITE; } else { - throw Exception(u"Stream must be readable or writable."); + throw Exception("Stream must be readable or writable."); } } @@ -80,7 +80,7 @@ Index Win32FileStream::DoRead(std::byte* buffer, Index offset, Index size) { Index Win32FileStream::DoWrite(const std::byte* buffer, Index offset, Index size) { if (size < 0) { - throw Exception(u"Size must be greater than 0."); + throw Exception("Size must be greater than 0."); } CheckClosed(); -- cgit v1.2.3