Performance.

This commit is contained in:
Jeff Young
2025-06-08 16:33:05 +01:00
parent 8968ff62e3
commit ff0f6c448b
3 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -452,7 +452,7 @@ int GERBER_PLOTTER::GetOrCreateAperture( const VECTOR2I& aSize, int aRadius,
new_tool.m_ApertureAttribute = aApertureAttribute;
new_tool.m_CustomAttribute = aCustomAttribute;
m_apertures.push_back( new_tool );
m_apertures.push_back( std::move( new_tool ) );
return m_apertures.size() - 1;
}
@@ -508,7 +508,7 @@ int GERBER_PLOTTER::GetOrCreateAperture( const std::vector<VECTOR2I>& aCorners,
new_tool.m_ApertureAttribute = aApertureAttribute;
new_tool.m_CustomAttribute = aCustomAttribute;
m_apertures.push_back( new_tool );
m_apertures.push_back( std::move( new_tool ) );
return m_apertures.size() - 1;
}