diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 08:37:30 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 08:37:30 +0800 |
| commit | 3c8d5c8f732239a8b50418be27464e30b9dddeae (patch) | |
| tree | 8ffb46c18e48c8463c1fb16fcacf216f296b8a1f /src/base/platform/win | |
| parent | 37943858b3b260589b5dc222bb5184d2846fb6dc (diff) | |
| download | cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.gz cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.bz2 cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.zip | |
Exception remove string.
Diffstat (limited to 'src/base/platform/win')
| -rw-r--r-- | src/base/platform/win/Win32FileStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
