aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/StringHelpers.h
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-06 02:11:18 +0700
committerGitHub <noreply@github.com>2026-03-06 02:11:18 +0700
commit55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch)
tree953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.World/StringHelpers.h
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.World/StringHelpers.h')
-rw-r--r--Minecraft.World/StringHelpers.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/Minecraft.World/StringHelpers.h b/Minecraft.World/StringHelpers.h
index 1b364118..dee676ba 100644
--- a/Minecraft.World/StringHelpers.h
+++ b/Minecraft.World/StringHelpers.h
@@ -6,19 +6,7 @@ wstring trimString(const wstring& a);
wstring replaceAll(const wstring& in, const wstring& replace, const wstring& with);
bool equalsIgnoreCase(const wstring& a, const wstring& b);
-// 4J-PB - for use in the ::toString
-template <class T> std::wstring _toString(T t)
-{
- std::wostringstream oss;
- oss << std::dec << t;
- return oss.str();
-}
-template <class T> std::wstring _toHexString(T t)
-{
- std::wostringstream oss;
- oss << std::hex << t;
- return oss.str();
-}
+
template <class T> T _fromString(const std::wstring& s)
{
std::wistringstream stream (s);