More performance improvements.

This commit is contained in:
Jeff Young 2025-05-25 20:53:07 +01:00
parent df0aefab59
commit 1237756b4a
4 changed files with 6 additions and 10 deletions

View File

@ -164,12 +164,9 @@ wxString RC_ITEM::ShowReport( UNITS_PROVIDER* aUnitsProvider, SEVERITY aSeverity
void RC_ITEM::GetJsonViolation( RC_JSON::VIOLATION& aViolation, UNITS_PROVIDER* aUnitsProvider,
SEVERITY aSeverity,
const std::map<KIID, EDA_ITEM*>& aItemMap ) const
SEVERITY aSeverity, const std::map<KIID, EDA_ITEM*>& aItemMap ) const
{
wxString severity = getSeverityString( aSeverity );
aViolation.severity = severity;
aViolation.severity = getSeverityString( aSeverity );
aViolation.description = GetErrorMessage();
aViolation.type = GetSettingsKey();
aViolation.excluded = ( m_parent && m_parent->IsExcluded() );

View File

@ -190,8 +190,7 @@ void SEARCH_PANE::ClearAllResults()
void SEARCH_PANE::OnSearchTextEntry( wxCommandEvent& aEvent )
{
wxString query = m_searchCtrl1->GetValue();
m_lastQuery = query;
m_lastQuery = m_searchCtrl1->GetValue();
RefreshSearch();
}

View File

@ -2653,8 +2653,8 @@ void SHAPE_LINE_CHAIN::Simplify( int aTolerance )
m_points.clear();
m_shapes.clear();
m_points = new_points;
m_shapes = new_shapes;
m_points = std::move( new_points );
m_shapes = std::move( new_shapes );
}

View File

@ -441,7 +441,7 @@ bool BOARD::ResolveTextVar( wxString* token, int aDepth ) const
if( refFP->ResolveTextVar( &remainder, aDepth + 1 ) )
{
*token = remainder;
*token = std::move( remainder );
return true;
}
}