← Back to team overview

kicad-developers team mailing list archive

[PATCH] Synchronize forward declaration with definition

 

The actual definition uses "class", so the forward declarations should do
so, too.
---
 include/class_title_block.h | 2 +-
 include/wxPcbStruct.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class_title_block.h b/include/class_title_block.h
index b66f783..36c85d5 100644
--- a/include/class_title_block.h
+++ b/include/class_title_block.h
@@ -28,7 +28,7 @@
 
 
 class OUTPUTFORMATTER;
-struct IO_ERROR;
+class IO_ERROR;
 
 
 /**
diff --git a/include/wxPcbStruct.h b/include/wxPcbStruct.h
index 356495f..184215b 100644
--- a/include/wxPcbStruct.h
+++ b/include/wxPcbStruct.h
@@ -63,7 +63,7 @@ class PCB_LAYER_BOX_SELECTOR;
 class NETLIST;
 class REPORTER;
 struct PARSE_ERROR;
-struct IO_ERROR;
+class IO_ERROR;
 class FP_LIB_TABLE;
 
 namespace PCB { struct IFACE; }     // KIFACE_I is in pcbnew.cpp

Follow ups