From 2778dc90f3dd72cd01b07769434a1c1dfd2507be Mon Sep 17 00:00:00 2001
From: Jeff Young <jeff@rokeby.ie>
Date: Thu, 20 Feb 2020 23:52:32 +0000
Subject: [PATCH] Cleanup.

---
 eeschema/sch_sheet.cpp | 1 +
 pcbnew/class_board.cpp | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/eeschema/sch_sheet.cpp b/eeschema/sch_sheet.cpp
index c65a6ab6a4..0240cd0534 100644
--- a/eeschema/sch_sheet.cpp
+++ b/eeschema/sch_sheet.cpp
@@ -79,6 +79,7 @@ SCH_SHEET::SCH_SHEET( const SCH_SHEET& aSheet ) :
         m_screen->IncRefCount();
 }
 
+// JEY TODO: add read/write of m_showSheetName & m_showFilename to new eeschema file format....
 
 SCH_SHEET::~SCH_SHEET()
 {
diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp
index 7c4c994615..52e2939af2 100644
--- a/pcbnew/class_board.cpp
+++ b/pcbnew/class_board.cpp
@@ -1580,9 +1580,7 @@ void BOARD::RemoveArea( PICKED_ITEMS_LIST* aDeletedList, ZONE_CONTAINER* area_to
 ZONE_CONTAINER* BOARD::InsertArea( int aNetcode, int aAreaIdx, PCB_LAYER_ID aLayer, int aCornerX,
         int aCornerY, ZONE_HATCH_STYLE aHatch )
 {
-    ZONE_CONTAINER* new_area = new ZONE_CONTAINER( this );
-    // JEY TODO: this should be a duplicate so we don't have to handle the UUID here....
-    const_cast<UUID&>( new_area->m_Uuid ) = UUID();
+    ZONE_CONTAINER* new_area = (ZONE_CONTAINER*) this->Duplicate();
 
     new_area->SetNetCode( aNetcode );
     new_area->SetLayer( aLayer );