mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
More performance improvements.
This commit is contained in:
parent
df0aefab59
commit
1237756b4a
@ -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() );
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user