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/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/Buffer.cpp') diff --git a/src/base/Buffer.cpp b/src/base/Buffer.cpp index 1213364a..386e46cc 100644 --- a/src/base/Buffer.cpp +++ b/src/base/Buffer.cpp @@ -7,7 +7,7 @@ namespace cru { namespace { void CheckSize(Index size) { if (size < 0) { - throw Exception(u"Size of buffer can't be smaller than 0."); + throw Exception("Size of buffer can't be smaller than 0."); } } } // namespace @@ -144,7 +144,7 @@ Index Buffer::PushBack(const std::byte* other, Index other_size, void Buffer::PushBackCount(Index count) { if (count < 0 || count > GetBackFree()) { - throw Exception(u"Count out of range in PushBackCount."); + throw Exception("Count out of range in PushBackCount."); } used_end_ += count; } -- cgit v1.2.3