From ccbce7e2eee3d20fd116d2d4561fe62fd5ffac82 Mon Sep 17 00:00:00 2001
From: Marek Roszko <mark.roszko@gmail.com>
Date: Sun, 29 Dec 2024 14:44:10 -0500
Subject: [PATCH] Move DESIGN_BLOCK into kicommon

---
 common/design_block.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/common/design_block.h b/common/design_block.h
index ad3a7f00ac..98d7d9223d 100644
--- a/common/design_block.h
+++ b/common/design_block.h
@@ -26,7 +26,7 @@
 #include <nlohmann/json.hpp>
 
 
-class DESIGN_BLOCK
+class KICOMMON_API DESIGN_BLOCK
 {
 public:
     void          SetLibId( const LIB_ID& aName ) { m_lib_id = aName; }
@@ -47,6 +47,10 @@ public:
     }
     const nlohmann::ordered_map<wxString, wxString>& GetFields() const { return m_fields; }
 
+    DESIGN_BLOCK() = default;
+    ///< This is the only way to get m_fields to compile as a class member
+    DESIGN_BLOCK( DESIGN_BLOCK&& aOther ) = delete;
+
 private:
     LIB_ID m_lib_id;
     wxString m_schematicFile;  // File name and path for schematic symbol.