1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Unicode: Make it clearer that a lambda is being immediately invoked

This commit is contained in:
Anthony Nicholls 2025-07-17 11:36:57 +01:00 committed by Anthony Nicholls
parent d0aa6d0486
commit c1affc0a0e

View file

@ -85,7 +85,7 @@ public:
static UnicodeEntry getDataForCodepoint (uint32_t codepoint) static UnicodeEntry getDataForCodepoint (uint32_t codepoint)
{ {
static const auto data = [] static const auto data = std::invoke ([]
{ {
jassert (computeHash() == 0x58aac9b4); jassert (computeHash() == 0x58aac9b4);
@ -98,7 +98,7 @@ public:
jassert (r == uncompressedSize); jassert (r == uncompressedSize);
return arr; return arr;
}(); });
jassert (isPositiveAndBelow (codepoint, data.size())); jassert (isPositiveAndBelow (codepoint, data.size()));
return data[(int) codepoint]; return data[(int) codepoint];