aboutsummaryrefslogtreecommitdiff
path: root/src/base/Buffer.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
commit3c8d5c8f732239a8b50418be27464e30b9dddeae (patch)
tree8ffb46c18e48c8463c1fb16fcacf216f296b8a1f /src/base/Buffer.cpp
parent37943858b3b260589b5dc222bb5184d2846fb6dc (diff)
downloadcru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.gz
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.bz2
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.zip
Exception remove string.
Diffstat (limited to 'src/base/Buffer.cpp')
-rw-r--r--src/base/Buffer.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}