From 116908c08882efd36f5129564339a35a0f607c57 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 16 Mar 2024 12:00:03 +0000 Subject: [PATCH] Formatting. --- eeschema/sch_commit.cpp | 27 ++++++++++++++------------- eeschema/sch_item.h | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/eeschema/sch_commit.cpp b/eeschema/sch_commit.cpp index f14bdfe8e4..8bcd045d51 100644 --- a/eeschema/sch_commit.cpp +++ b/eeschema/sch_commit.cpp @@ -211,21 +211,22 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags ) if( schItem->IsSelected() ) selectedModified = true; - auto updateConnectivityFlag = [&, this]() - { - if( schItem->IsConnectable() ) - { - dirtyConnectivity = true; + auto updateConnectivityFlag = + [&]() + { + if( schItem->IsConnectable() ) + { + dirtyConnectivity = true; - // Do a local clean up if there are any connectable objects in the commit. - if( connectivityCleanUp == NO_CLEANUP ) - connectivityCleanUp = LOCAL_CLEANUP; + // Do a local clean up if there are any connectable objects in the commit. + if( connectivityCleanUp == NO_CLEANUP ) + connectivityCleanUp = LOCAL_CLEANUP; - // Do a full rebauild of the connectivity if there is a sheet in the commit. - if( schItem->Type() == SCH_SHEET_T ) - connectivityCleanUp = GLOBAL_CLEANUP; - } - }; + // Do a full rebauild of the connectivity if there is a sheet in the commit. + if( schItem->Type() == SCH_SHEET_T ) + connectivityCleanUp = GLOBAL_CLEANUP; + } + }; switch( changeType ) { diff --git a/eeschema/sch_item.h b/eeschema/sch_item.h index 3611300dc6..de0bc14545 100644 --- a/eeschema/sch_item.h +++ b/eeschema/sch_item.h @@ -457,7 +457,7 @@ public: /** * Check if \a aItem has connectivity changes against this object. * - * This provides granular per object connectivity change testing to prevent the need + * This provides granular per object connectivity change testing to prevent the need * to rebuild the #CONNECTION_GRAPH when object properties that have nothing to do with * the schematic connectivity changes i.e. color, thickness, fill type. etc. *