mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
More performance improvements. Expose String::View.
This commit is contained in:
@@ -739,7 +739,8 @@ void AutoCompletePlugin::postDraw( UICodeEditor* editor, const Vector2f& startSc
|
||||
eemin<size_t>( mSuggestionsStartIndex + mSuggestionsMaxVisible, suggestions.size() );
|
||||
|
||||
for ( size_t i = mSuggestionsStartIndex; i < maxIndex; i++ )
|
||||
largestString = eemax<size_t>( largestString, editor->getTextWidth( suggestions[i].text ) );
|
||||
largestString =
|
||||
eemax<size_t>( largestString, editor->getTextWidth( String{ suggestions[i].text } ) );
|
||||
|
||||
Sizef bar( PixelDensity::dpToPxI( 6 ),
|
||||
eemax( PixelDensity::dpToPx( 8 ),
|
||||
|
||||
Reference in New Issue
Block a user