From 1fd9c63cfe3419a03013369e14241db1dc2dd2de Mon Sep 17 00:00:00 2001 From: karutoh Date: Sat, 17 Feb 2024 00:54:14 -0800 Subject: [PATCH] Removed a param from Serializer::WriteStr. --- include/ehs/Serializer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ehs/Serializer.h b/include/ehs/Serializer.h index 78b6658..3de251c 100644 --- a/include/ehs/Serializer.h +++ b/include/ehs/Serializer.h @@ -396,9 +396,11 @@ namespace ehs } template - void WriteStr(const T* str, const bool sizeKnown, N inSize = 0) + void WriteStr(const T* str, N inSize = 0) { - if (!inSize) + bool sizeKnown = inSize; + + if (!sizeKnown) while (str[inSize]) inSize++;