mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 16:26:35 +00:00
refactor: expand AUTO_VAR macro
This commit is contained in:
@@ -43,11 +43,11 @@ void StringTable::ProcessStringTableData(void) {
|
||||
int dataSize = 0;
|
||||
|
||||
//
|
||||
for (AUTO_VAR(it_locales, locales.begin());
|
||||
for (auto it_locales = locales.begin();
|
||||
it_locales != locales.end() && (!foundLang); it_locales++) {
|
||||
bytesToSkip = 0;
|
||||
|
||||
for (AUTO_VAR(it, langSizeMap.begin()); it != langSizeMap.end(); ++it) {
|
||||
for (auto it = langSizeMap.begin(); it != langSizeMap.end(); ++it) {
|
||||
if (it->first.compare(*it_locales) == 0) {
|
||||
app.DebugPrintf("StringTable:: Found language '%ls'.\n",
|
||||
it_locales->c_str());
|
||||
@@ -135,7 +135,7 @@ const wchar_t* StringTable::getString(const std::wstring& id) {
|
||||
}
|
||||
#endif
|
||||
|
||||
AUTO_VAR(it, m_stringsMap.find(id));
|
||||
auto it = m_stringsMap.find(id);
|
||||
|
||||
if (it != m_stringsMap.end()) {
|
||||
return it->second.c_str();
|
||||
|
||||
Reference in New Issue
Block a user