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:
parent
d0aa6d0486
commit
c1affc0a0e
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue