summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/settings.cpp')
-rw-r--r--plugins/HistoryStats/src/settings.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/HistoryStats/src/settings.cpp b/plugins/HistoryStats/src/settings.cpp
index 3afbb3aaa5..ce15912a01 100644
--- a/plugins/HistoryStats/src/settings.cpp
+++ b/plugins/HistoryStats/src/settings.cpp
@@ -21,12 +21,7 @@ Settings::CharMapper::CharMapper(const Settings& settings)
}
LCID lcid = GetUserDefaultLCID();
- int len = LCMapString(
- lcid, LCMAP_LINGUISTIC_CASING | LCMAP_LOWERCASE,
- m_CharMap + 1, array_len(m_CharMap) - 1,
- m_CharMap + 1, array_len(m_CharMap) - 1);
-
- assert(len == array_len(m_CharMap) - 1);
+ LCMapString(lcid, LCMAP_LINGUISTIC_CASING | LCMAP_LOWERCASE, m_CharMap + 1, _countof(m_CharMap)-1, m_CharMap + 1, _countof(m_CharMap)-1);
upto_each_(i, 3)
{