mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix C++20 compilation
This commit is contained in:
parent
04ed3559a6
commit
432a7e1c9a
2 changed files with 2 additions and 2 deletions
|
|
@ -1320,7 +1320,7 @@ void SimpleShapedText::shape (const String& data,
|
|||
glyphSpansInLine.end(),
|
||||
std::make_pair (std::numeric_limits<int64>::max(),
|
||||
std::numeric_limits<int64>::min()),
|
||||
[&] (auto& sum, auto& elem) -> std::pair<int64, int64>
|
||||
[&] (auto sum, auto& elem) -> std::pair<int64, int64>
|
||||
{
|
||||
const auto r = elem.textRange + lineRange.getStart();
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ struct TextEditor::RemoveAction final : public UndoableAction
|
|||
return std::accumulate (removedText.texts.begin(),
|
||||
removedText.texts.end(),
|
||||
0,
|
||||
[] (auto& sum, auto& value)
|
||||
[] (auto sum, auto& value)
|
||||
{
|
||||
return sum + (int) value.getNumBytesAsUTF8();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue