aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/SelectWorldScreen.cpp
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.Client/SelectWorldScreen.cpp
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.Client/SelectWorldScreen.cpp')
-rw-r--r--Minecraft.Client/SelectWorldScreen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/SelectWorldScreen.cpp b/Minecraft.Client/SelectWorldScreen.cpp
index a07eb7b2..0481f1e5 100644
--- a/Minecraft.Client/SelectWorldScreen.cpp
+++ b/Minecraft.Client/SelectWorldScreen.cpp
@@ -60,7 +60,7 @@ wstring SelectWorldScreen::getWorldName(int id)
if ( levelName.length() == 0 )
{
Language *language = Language::getInstance();
- levelName = language->getElement(L"selectWorld.world") + L" " + _toString<int>(id + 1);
+ levelName = language->getElement(L"selectWorld.world") + L" " + std::to_wstring(id + 1);
}
return levelName;
@@ -150,7 +150,7 @@ void SelectWorldScreen::worldSelected(int id)
wstring worldFolderName = getWorldId(id);
if (worldFolderName == L"") // 4J - was NULL comparison
{
- worldFolderName = L"World" + _toString<int>(id);
+ worldFolderName = L"World" + std::to_wstring(id);
}
// 4J Stu - Not used, so commenting to stop the build failing
#if 0
@@ -246,7 +246,7 @@ void SelectWorldScreen::WorldSelectionList::selectItem(int item, bool doubleClic
parent->deleteButton->active = active;
parent->renameButton->active = active;
- if (doubleClick && active)
+ if (doubleClick && active)
{
parent->worldSelected(item);
}
@@ -274,7 +274,7 @@ void SelectWorldScreen::WorldSelectionList::renderItem(int i, int x, int y, int
wstring name = levelSummary->getLevelName();
if (name.length()==0)
{
- name = parent->worldLang + L" " + _toString<int>(i + 1);
+ name = parent->worldLang + L" " + std::to_wstring(i + 1);
}
wstring id = levelSummary->getLevelId();
@@ -295,7 +295,7 @@ void SelectWorldScreen::WorldSelectionList::renderItem(int i, int x, int y, int
id = id + L" (" + buffer;
__int64 size = levelSummary->getSizeOnDisk();
- id = id + L", " + _toString<float>(size / 1024 * 100 / 1024 / 100.0f) + L" MB)";
+ id = id + L", " + std::to_wstring(static_cast<float>(size / 1024 * 100 / 1024 / 100.0f)) + L" MB)";
wstring info;
if (levelSummary->isRequiresConversion())