Eeschema: forward declare outside the namespace

GCC didn't like the std::vector<class SCH_JUNCTION*> inside the NS.
This commit is contained in:
John Beard 2025-08-12 16:09:06 +08:00
parent 1a7a97a496
commit 845c67fca3
2 changed files with 8 additions and 3 deletions

View File

@ -270,4 +270,4 @@ std::vector<SCH_JUNCTION*> JUNCTION_HELPERS::PreviewJunctions( const SCH_SCREEN*
}
return jcts;
}
}

View File

@ -17,9 +17,14 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <vector>
#include <math/vector2d.h>
#include <sch_rtree.h>
class SCH_JUNCTION;
namespace JUNCTION_HELPERS
{
@ -56,7 +61,7 @@ POINT_INFO AnalyzePoint( const EE_RTREE& aItem, const VECTOR2I& aPosition, bool
* @param aItems Temporary items not yet added to the screen.
* @return Locations of needed junctions represented as new SCH_JUNCTION items.
*/
std::vector<class SCH_JUNCTION*> PreviewJunctions( const class SCH_SCREEN* aScreen,
const std::vector<class SCH_ITEM*>& aItems );
std::vector<SCH_JUNCTION*> PreviewJunctions( const class SCH_SCREEN* aScreen,
const std::vector<class SCH_ITEM*>& aItems );
} // namespace JUNCTION_HELPERS