From 845c67fca31c3f2b88bd5cfd16ff951171617b2f Mon Sep 17 00:00:00 2001 From: John Beard Date: Tue, 12 Aug 2025 16:09:06 +0800 Subject: [PATCH] Eeschema: forward declare outside the namespace GCC didn't like the std::vector inside the NS. --- eeschema/junction_helpers.cpp | 2 +- eeschema/junction_helpers.h | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/eeschema/junction_helpers.cpp b/eeschema/junction_helpers.cpp index df99cf37d4..4768e9374c 100644 --- a/eeschema/junction_helpers.cpp +++ b/eeschema/junction_helpers.cpp @@ -270,4 +270,4 @@ std::vector JUNCTION_HELPERS::PreviewJunctions( const SCH_SCREEN* } return jcts; -} \ No newline at end of file +} diff --git a/eeschema/junction_helpers.h b/eeschema/junction_helpers.h index b8acba9c35..e92f207451 100644 --- a/eeschema/junction_helpers.h +++ b/eeschema/junction_helpers.h @@ -17,9 +17,14 @@ * with this program. If not, see . */ +#include + #include #include + +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 PreviewJunctions( const class SCH_SCREEN* aScreen, - const std::vector& aItems ); +std::vector PreviewJunctions( const class SCH_SCREEN* aScreen, + const std::vector& aItems ); } // namespace JUNCTION_HELPERS